From b598c91d9f6458b054613ee1366c89518b4b0b11 Mon Sep 17 00:00:00 2001 From: Christian Arenas Date: Wed, 10 May 2017 12:58:36 +0200 Subject: [PATCH] minor naming changes --- ...tService.cs => ISagaManagerIntegrationEventService.cs} | 2 +- ...ntService.cs => SagaManagerIntegrationEventService.cs} | 4 ++-- src/Services/SagaManager/SagaManager/Program.cs | 2 +- .../SagaManager/Services/SagaManagerService.cs | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) rename src/Services/SagaManager/SagaManager/IntegrationEvents/{ISagaManagingIntegrationEventService.cs => ISagaManagerIntegrationEventService.cs} (76%) rename src/Services/SagaManager/SagaManager/IntegrationEvents/{SagaManagingIntegrationEventService.cs => SagaManagerIntegrationEventService.cs} (75%) diff --git a/src/Services/SagaManager/SagaManager/IntegrationEvents/ISagaManagingIntegrationEventService.cs b/src/Services/SagaManager/SagaManager/IntegrationEvents/ISagaManagerIntegrationEventService.cs similarity index 76% rename from src/Services/SagaManager/SagaManager/IntegrationEvents/ISagaManagingIntegrationEventService.cs rename to src/Services/SagaManager/SagaManager/IntegrationEvents/ISagaManagerIntegrationEventService.cs index 26d97e682..41407702d 100644 --- a/src/Services/SagaManager/SagaManager/IntegrationEvents/ISagaManagingIntegrationEventService.cs +++ b/src/Services/SagaManager/SagaManager/IntegrationEvents/ISagaManagerIntegrationEventService.cs @@ -2,7 +2,7 @@ { using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; - public interface ISagaManagingIntegrationEventService + public interface ISagaManagerIntegrationEventService { void PublishThroughEventBus(IntegrationEvent evt); } diff --git a/src/Services/SagaManager/SagaManager/IntegrationEvents/SagaManagingIntegrationEventService.cs b/src/Services/SagaManager/SagaManager/IntegrationEvents/SagaManagerIntegrationEventService.cs similarity index 75% rename from src/Services/SagaManager/SagaManager/IntegrationEvents/SagaManagingIntegrationEventService.cs rename to src/Services/SagaManager/SagaManager/IntegrationEvents/SagaManagerIntegrationEventService.cs index 5052e3b27..3643c0530 100644 --- a/src/Services/SagaManager/SagaManager/IntegrationEvents/SagaManagingIntegrationEventService.cs +++ b/src/Services/SagaManager/SagaManager/IntegrationEvents/SagaManagerIntegrationEventService.cs @@ -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)); } diff --git a/src/Services/SagaManager/SagaManager/Program.cs b/src/Services/SagaManager/SagaManager/Program.cs index 6f181be2f..06fdec6ba 100644 --- a/src/Services/SagaManager/SagaManager/Program.cs +++ b/src/Services/SagaManager/SagaManager/Program.cs @@ -58,7 +58,7 @@ namespace SagaManager .AddOptions() .Configure(Configuration) .AddSingleton() - .AddSingleton() + .AddSingleton() .AddSingleton() .AddSingleton() .AddSingleton(sp => diff --git a/src/Services/SagaManager/SagaManager/Services/SagaManagerService.cs b/src/Services/SagaManager/SagaManager/Services/SagaManagerService.cs index 50b06ba98..b40c2fb08 100644 --- a/src/Services/SagaManager/SagaManager/Services/SagaManagerService.cs +++ b/src/Services/SagaManager/SagaManager/Services/SagaManagerService.cs @@ -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 _logger; public SagaManagerService(IOptions settings, - ISagaManagingIntegrationEventService sagaManagingIntegrationEventService, + ISagaManagerIntegrationEventService sagaManagerIntegrationEventService, ILogger 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); } } } \ No newline at end of file