Загрузка...

MediatR Going Commercial - Here's How You Can Build Your Own

Get the source code for this video for FREE → https://the-dotnet-weekly.kit.com/mediatr-free
Want to master Clean Architecture? Go here: https://bit.ly/3PupkOJ
Want to unlock Modular Monoliths? Go here: https://bit.ly/3SXlzSt
Join a community of 1000+ .NET developers: https://www.patreon.com/milanjovanovic

In this video, I discuss the recent announcement that MediatR and AutoMapper are going commercial and demonstrate how to create a simple alternative to MediatR using basic abstractions and dependency injection.

What you'll learn:
- The impact of MediatR going commercial (starting with version 13)
- How to use MediatR's core functionality (IRequest, IRequestHandler, IPipelineBehavior)
- Step-by-step implementation of a simple MediatR alternative
- How to implement request handlers and decorators with dependency injection
- Comparing both approaches and their trade-offs

I first demonstrate how MediatR works with a practical example using a movie request handler, then show how to build a similar system from scratch without relying on the MediatR package. The simple alternative provides direct handler referencing without the indirection MediatR uses, while still supporting most of the same functionality.

Let me know in the comments if you'd like to see me implement custom support for the publish-subscribe pattern that MediatR provides with the INotification interface!

MediatR and MassTransit Going Commercial: What This Means For You
https://www.milanjovanovic.tech/blog/mediatr-and-masstransit-going-commercial-what-this-means-for-you

Check out my courses:
https://www.milanjovanovic.tech/courses

Read my Blog here:
https://www.milanjovanovic.tech/blog

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Chapters
0:00 MediatR going commercial
0:50 Using MediatR (wait, what?)
5:21 Building your own MediatR

Видео MediatR Going Commercial - Here's How You Can Build Your Own канала Milan Jovanović
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять