DEV Community

loading...

Discussion on: Clean architecture series — Part 3

Collapse
pereiren profile image
David Pereira Author

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!

Forem Open with the Forem app