Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit fa80266

Browse files
authored
Merge pull request #474 from EnricoTirotta/patch-1
Update MediatorModule.cs
2 parents b1ce2f9 + 8420353 commit fa80266

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Services/Ordering/Ordering.API/Infrastructure/AutofacModules/MediatorModule.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ protected override void Load(ContainerBuilder builder)
1919
builder.RegisterAssemblyTypes(typeof(IMediator).GetTypeInfo().Assembly)
2020
.AsImplementedInterfaces();
2121

22-
// Register all the Command classes (they implement IAsyncRequestHandler) in assembly holding the Commands
22+
// Register all the Command classes (they implement IRequestHandler) in assembly holding the Commands
2323
builder.RegisterAssemblyTypes(typeof(CreateOrderCommand).GetTypeInfo().Assembly)
2424
.AsClosedTypesOf(typeof(IRequestHandler<,>));
2525

26-
// Register the DomainEventHandler classes (they implement IAsyncNotificationHandler<>) in assembly holding the Domain Events
26+
// Register the DomainEventHandler classes (they implement INotificationHandler<>) in assembly holding the Domain Events
2727
builder.RegisterAssemblyTypes(typeof(ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler).GetTypeInfo().Assembly)
2828
.AsClosedTypesOf(typeof(INotificationHandler<>));
2929

0 commit comments

Comments
 (0)