Declare PayOrderCommandMsg class DI

This commit is contained in:
Christian Arenas 2017-05-16 15:08:02 +02:00
parent a757bb58f0
commit 4cd594bebc

View File

@ -48,6 +48,7 @@ namespace Payment.API
services.AddSingleton<IEventBus, EventBusRabbitMQ>();
services.AddSingleton<IEventBusSubscriptionsManager, InMemoryEventBusSubscriptionsManager>();
services.AddTransient<IIntegrationEventHandler<PayOrderCommandMsg>>();
services.AddSwaggerGen();
services.ConfigureSwaggerGen(options =>