I Removed MediatR – Building Your Own CQRS Handlers in .NET
Get the free Clean Architecture template: https://dub.sh/ca-template Want to master Clean Architecture? Go here: https://bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: https://bit.ly/3SXlzSt You've probably heard—MediatR is going commercial. If you're using it in your Clean Architecture template (like I did), it might be time to explore alternatives. In this video, I’ll walk you through a full MediatR-free CQRS implementation using custom `ICommand`, `IQuery`, and handler interfaces. ✅ We’ll cover: Why I decided to remove MediatR How to build your own CQRS abstractions Replacing ISender with explicit handler injection Manual DI vs automatic scanning using [Scrutor](https://www.nuget.org/packages/Scrutor) Fully working Command & Query pipeline without third-party libraries You'll see how to: Refactor a .NET API endpoint from MediatR to your own handler Register handlers manually and automatically Handle generic result types for commands and queries 👉 Want to skip ahead and use the updated template? Check the pinned comment for a link to the Clean Architecture template without MediatR. 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 Why MediatR and CQRS 1:44 ICommand and IQuery abstractions 4:33 Registering handlers with DI 5:21 Using handlers in endpoints (or services) 7:47 Completing the refactoring 10:32 A better way to register handlers with DI 13:55 The problem with cross-cutting concerns

Building Your Own CQRS Pipeline With Decorators (Dropped MediatR!)

CQRS & MediatR in a .NET Web API 🚀

Why Shopify Rejected Microservices (And What They Did Instead)

My Complete CQRS and Domain Events Setup in .NET

MediatR Pipeline Behavior in .NET - For Beginners

What Every .NET Developer Actually Needs to Know in 2026

CQRS Step by step build in .NET

I Hacked This Temu Router. What I Found Should Be Illegal.

Replacing Switch Statements with the Factory Pattern in C#

Minimal APIs, CQRS, DDD… Or Just Use Controllers?

Intro to MediatR - Implementing CQRS and Mediator Patterns

How Huawei Just Built an Impossible Chip

Does MediatR Even Make Sense Anymore in .NET?

Trump Attends NBA Finals, Cries Election Fraud in California & Storms Out of Interview

AI Bubble: How AI's push towards IPOs became a death drive | Ed Zitron

CQRS Doesn't Have To Be Complicated | Clean Architecture, .NET 6

Casey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025

How SQL Indexes Actually Work (Step-by-Step)

🚗 BYD : The biggest SCAM of the car industry ?

