Browse Source

minor naming changes

pull/223/head
Christian Arenas 7 years ago
parent
commit
23bb012074
4 changed files with 8 additions and 8 deletions
  1. +1
    -1
      src/Services/SagaManager/SagaManager/IntegrationEvents/ISagaManagerIntegrationEventService.cs
  2. +2
    -2
      src/Services/SagaManager/SagaManager/IntegrationEvents/SagaManagerIntegrationEventService.cs
  3. +1
    -1
      src/Services/SagaManager/SagaManager/Program.cs
  4. +4
    -4
      src/Services/SagaManager/SagaManager/Services/SagaManagerService.cs

src/Services/SagaManager/SagaManager/IntegrationEvents/ISagaManagingIntegrationEventService.cs → src/Services/SagaManager/SagaManager/IntegrationEvents/ISagaManagerIntegrationEventService.cs View File

@ -2,7 +2,7 @@
{
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
public interface ISagaManagingIntegrationEventService
public interface ISagaManagerIntegrationEventService
{
void PublishThroughEventBus(IntegrationEvent evt);
}

src/Services/SagaManager/SagaManager/IntegrationEvents/SagaManagingIntegrationEventService.cs → src/Services/SagaManager/SagaManager/IntegrationEvents/SagaManagerIntegrationEventService.cs View File

@ -4,11 +4,11 @@
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
using System;
public class SagaManagingIntegrationEventService : ISagaManagingIntegrationEventService
public class SagaManagerIntegrationEventService : ISagaManagerIntegrationEventService
{
private readonly IEventBus _eventBus;
public SagaManagingIntegrationEventService(IEventBus eventBus)
public SagaManagerIntegrationEventService(IEventBus eventBus)
{
_eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
}

+ 1
- 1
src/Services/SagaManager/SagaManager/Program.cs View File

@ -58,7 +58,7 @@ namespace SagaManager
.AddOptions()
.Configure<SagaManagerSettings>(Configuration)
.AddSingleton<ISagaManagerService, SagaManagerService>()
.AddSingleton<ISagaManagingIntegrationEventService, SagaManagingIntegrationEventService>()
.AddSingleton<ISagaManagerIntegrationEventService, SagaManagerIntegrationEventService>()
.AddSingleton<IEventBus, EventBusRabbitMQ>()
.AddSingleton<IEventBusSubscriptionsManager, InMemoryEventBusSubscriptionsManager>()
.AddSingleton<IRabbitMQPersistentConnection>(sp =>


+ 4
- 4
src/Services/SagaManager/SagaManager/Services/SagaManagerService.cs View File

@ -14,15 +14,15 @@ namespace SagaManager.Services
public class SagaManagerService : ISagaManagerService
{
private readonly SagaManagerSettings _settings;
private readonly ISagaManagingIntegrationEventService _sagaManagingIntegrationEventService;
private readonly ISagaManagerIntegrationEventService _sagaManagerIntegrationEventService;
private readonly ILogger<SagaManagerService> _logger;
public SagaManagerService(IOptions<SagaManagerSettings> settings,
ISagaManagingIntegrationEventService sagaManagingIntegrationEventService,
ISagaManagerIntegrationEventService sagaManagerIntegrationEventService,
ILogger<SagaManagerService> logger)
{
_settings = settings.Value;
_sagaManagingIntegrationEventService = sagaManagingIntegrationEventService;
_sagaManagerIntegrationEventService = sagaManagerIntegrationEventService;
_logger = logger;
}
@ -66,7 +66,7 @@ namespace SagaManager.Services
var confirmGracePeriodEvent = new ConfirmGracePeriodCommandMsg(orderId);
// Publish through the Event Bus
_sagaManagingIntegrationEventService.PublishThroughEventBus(confirmGracePeriodEvent);
_sagaManagerIntegrationEventService.PublishThroughEventBus(confirmGracePeriodEvent);
}
}
}

Loading…
Cancel
Save