Declare PayOrderCommandMsg class DI
This commit is contained in:
parent
a757bb58f0
commit
4cd594bebc
@ -48,6 +48,7 @@ namespace Payment.API
|
|||||||
|
|
||||||
services.AddSingleton<IEventBus, EventBusRabbitMQ>();
|
services.AddSingleton<IEventBus, EventBusRabbitMQ>();
|
||||||
services.AddSingleton<IEventBusSubscriptionsManager, InMemoryEventBusSubscriptionsManager>();
|
services.AddSingleton<IEventBusSubscriptionsManager, InMemoryEventBusSubscriptionsManager>();
|
||||||
|
services.AddTransient<IIntegrationEventHandler<PayOrderCommandMsg>>();
|
||||||
|
|
||||||
services.AddSwaggerGen();
|
services.AddSwaggerGen();
|
||||||
services.ConfigureSwaggerGen(options =>
|
services.ConfigureSwaggerGen(options =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user