minor naming changes

This commit is contained in:
Christian Arenas 2017-05-10 12:58:36 +02:00
parent 629693043b
commit 23bb012074
4 changed files with 8 additions and 8 deletions

View File

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

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));
}

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 =>

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);
}
}
}