I Built My Own MediatR – Here’s How You Can Too

So, MediatR’s changing things up, right? If you’re looking for a free way to handle messaging in your .NET apps, I’ve got something cool for you.

In my latest video, I walk you through building your own alternative to MediatR. We’ll dive into the Mediator pattern, CQRS (Command Query Responsibility Segregation) and how to implement CQRS using the Mediator pattern.

You’ll see how to set up the basics for sending commands and queries, and how to get the right code to handle them.

We also touch on making things easier with Scrutor for registering these handlers.

But the really interesting part? We explore using Source Generators. This lets you automatically generate some of the code, which can make your application run better.

Want to see how to build your own message handler in .NET and maybe move away from MediatR? Check out the video!

Let me know what you think!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.