No, You Really Don't Need MediatR in .NET
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
A practical demonstration of how to replace MediatR in .NET applications using built-in ASP.NET Core dependency injection and the decorator pattern. The approach replicates MediatR's pipeline behaviors — including logging and validation cross-cutting concerns — without the package dependency. Handlers remain unchanged; only the DI registration differs, using decorator wrapping to achieve the same behavior as MediatR's pipeline.
•8m watch time
Sort: