DEV Community


Discussion on: Clean architecture series — Part 3

pereiren profile image
David Pereira Author


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:

I was pretty busy these past months, but I think it is a great topic to cover in an article :)

Thanks for reading!

Forem Open with the Forem app