Closed neozhu closed 1 year ago
I solve it.
services.AddTransient(typeof(INotificationHandler<DomainEventNotification<ApprovedEvent
The reason why this doesn't work is MediatR only looks for handlers of type INotificationHandler<TNotification>
. It won't try to close more complex variations like this.
please see my code structure
this ApprovedEventHandler not hit.why?
how to solve it.