File tree Expand file tree Collapse file tree
src/Services/Payment/Payment.API
IntegrationCommands/CommandHandlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ public class PayOrderCommandMsgHandler : IIntegrationEventHandler<PayOrderComman
1212 private readonly IPaymentIntegrationEventService _paymentIntegrationEventService ;
1313
1414 public PayOrderCommandMsgHandler ( IPaymentIntegrationEventService paymentIntegrationEventService )
15- => _paymentIntegrationEventService = paymentIntegrationEventService ;
15+ {
16+ _paymentIntegrationEventService = paymentIntegrationEventService ;
17+ }
18+
1619
1720 public async Task Handle ( PayOrderCommandMsg @event )
1821 {
Original file line number Diff line number Diff line change 2929 <ProjectReference Include =" ..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" />
3030 <ProjectReference Include =" ..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" />
3131 <ProjectReference Include =" ..\..\..\BuildingBlocks\EventBus\IntegrationEventLogEF\IntegrationEventLogEF.csproj" />
32+ <ProjectReference Include =" ..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" />
33+ <ProjectReference Include =" ..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks.SqlServer\Microsoft.Extensions.HealthChecks.SqlServer.csproj" />
34+ <ProjectReference Include =" ..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" />
3235 </ItemGroup >
3336
3437</Project >
Original file line number Diff line number Diff line change 1212using RabbitMQ . Client ;
1313using Microsoft . eShopOnContainers . BuildingBlocks . EventBus ;
1414using Payment . API . IntegrationEvents ;
15+ using Payment . API . IntegrationCommands . CommandHandlers ;
1516
1617namespace Payment . API
1718{
@@ -49,7 +50,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
4950 } ) ;
5051 services . AddSingleton < IEventBus , EventBusRabbitMQ > ( ) ;
5152 services . AddSingleton < IEventBusSubscriptionsManager , InMemoryEventBusSubscriptionsManager > ( ) ;
52- services . AddTransient < IIntegrationEventHandler < PayOrderCommandMsg > > ( ) ;
53+ services . AddTransient < IIntegrationEventHandler < PayOrderCommandMsg > , PayOrderCommandMsgHandler > ( ) ;
5354
5455
5556 services . AddSwaggerGen ( ) ;
You can’t perform that action at this time.
0 commit comments