File tree Expand file tree Collapse file tree
src/Services/Ordering/Ordering.API/Infrastructure/AutofacModules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ protected override void Load(ContainerBuilder builder)
2323 builder . RegisterAssemblyTypes ( typeof ( CreateOrderCommand ) . GetTypeInfo ( ) . Assembly )
2424 . AsClosedTypesOf ( typeof ( IAsyncRequestHandler < , > ) ) ;
2525
26- // Register all the event classes (they implement IAsyncNotificationHandler) in assembly holding the Commands
26+ // Register the DomainEventHandler classes (they implement IAsyncNotificationHandler<> ) in assembly holding the Domain Events
2727 builder . RegisterAssemblyTypes ( typeof ( ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler ) . GetTypeInfo ( ) . Assembly )
2828 . AsClosedTypesOf ( typeof ( IAsyncNotificationHandler < > ) ) ;
2929
30-
30+ // Register the Command's Validators (Validators based on FluentValidation library)
3131 builder
3232 . RegisterAssemblyTypes ( typeof ( CreateOrderCommandValidator ) . GetTypeInfo ( ) . Assembly )
3333 . Where ( t => t . IsClosedTypeOf ( typeof ( IValidator < > ) ) )
You can’t perform that action at this time.
0 commit comments