MediatR Going Commercial - Here's How You Can Build Your Own
Автор: Milan Jovanović
Загружено: 8 апр. 2025 г.
Просмотров: 22 872 просмотра
Get the source code for this video for FREE → https://the-dotnet-weekly.kit.com/med...
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: / 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/...
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

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: