Declare PayOrderCommandMsg class DI
This commit is contained in:
parent
66ad6b756c
commit
701a0e67e8
@ -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