You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var n = new Notification();
_mediator.Notify(n); // succeeds
_mediator.Notify((ISomeInterface) n); // fails
as it resolves to Notify<ISomeInterface>, which uses DependencyResolver.GetInstances<INotificationHandler<ISomeInterface>>()
which won't find the appropriate handlers.
I propose a similar usage through MediatorPlan instead, if I find time I will propose a pull request.
My problem is that I aggregate my IDomainEvents into an array, and then dispatch them, loosing the type info.
For now the workaround I use is_mediator.Notify((dynamic) n);
The text was updated successfully, but these errors were encountered:
e.g:
as it resolves to
Notify<ISomeInterface>
, which usesDependencyResolver.GetInstances<INotificationHandler<ISomeInterface>>()
which won't find the appropriate handlers.
I propose a similar usage through MediatorPlan instead, if I find time I will propose a pull request.
My problem is that I aggregate my IDomainEvents into an array, and then dispatch them, loosing the type info.
For now the workaround I use is_mediator.Notify((dynamic) n);
The text was updated successfully, but these errors were encountered: