Merge pull request #474 from EnricoTirotta/patch-1
Update MediatorModule.cs
This commit is contained in:
commit
fa80266040
@ -19,11 +19,11 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.API.Infrastructure.Autof
|
|||||||
builder.RegisterAssemblyTypes(typeof(IMediator).GetTypeInfo().Assembly)
|
builder.RegisterAssemblyTypes(typeof(IMediator).GetTypeInfo().Assembly)
|
||||||
.AsImplementedInterfaces();
|
.AsImplementedInterfaces();
|
||||||
|
|
||||||
// Register all the Command classes (they implement IAsyncRequestHandler) in assembly holding the Commands
|
// Register all the Command classes (they implement IRequestHandler) in assembly holding the Commands
|
||||||
builder.RegisterAssemblyTypes(typeof(CreateOrderCommand).GetTypeInfo().Assembly)
|
builder.RegisterAssemblyTypes(typeof(CreateOrderCommand).GetTypeInfo().Assembly)
|
||||||
.AsClosedTypesOf(typeof(IRequestHandler<,>));
|
.AsClosedTypesOf(typeof(IRequestHandler<,>));
|
||||||
|
|
||||||
// Register the DomainEventHandler classes (they implement IAsyncNotificationHandler<>) in assembly holding the Domain Events
|
// Register the DomainEventHandler classes (they implement INotificationHandler<>) in assembly holding the Domain Events
|
||||||
builder.RegisterAssemblyTypes(typeof(ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler).GetTypeInfo().Assembly)
|
builder.RegisterAssemblyTypes(typeof(ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler).GetTypeInfo().Assembly)
|
||||||
.AsClosedTypesOf(typeof(INotificationHandler<>));
|
.AsClosedTypesOf(typeof(INotificationHandler<>));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user