To use the Mediator pattern in .NET for example, I have used external Nuget packages like Mediatr or FluentMediator so they provide me the needed contracts or interfaces that I need to implement with the different domain commands and event handlers.
Then you need to register them in your IoC container to get the benefits of DI wherever you need them.
Hi David,
Nice article, for Mediator, does your Mediator as an Interface?
Hi!
To use the Mediator pattern in .NET for example, I have used external Nuget packages like Mediatr or FluentMediator so they provide me the needed contracts or interfaces that I need to implement with the different domain commands and event handlers.
Then you need to register them in your IoC container to get the benefits of DI wherever you need them.
Here you can find some samples: github.com/jbogard/MediatR/tree/ma...
github.com/ivanpaulovich/FluentMed...
I was pretty busy these past months, but I think it is a great topic to cover in an article :)
Thanks for reading!