MediatR is a great library that helps us to write better software. Making sure that each action in the application has only one single request handler in our applications helps a lot in this case. But with great help also come great challenges. In most of the projects, MediatR request handler tend to become convoluted, messy and ugly. But not more! IN this video I'll show you how we can refactor MediatR request handlers in practice, by leveraging other MediatR features like pipeline bejaviors and notifications.
#dotnet #aspnetcore
Join this channel to get source code access and other perks:
/ @codewrinkles
Content
1. Intro: 00:00
2. Messy request handlers: 00:51
3. Handling logging: 02:29
4. Validation: 03:44
5. Working with DB transaction: 05:42
6. Extracting to private methods: 07:57
7. MediatR notification: 08:56
8. The result object pattern: 12:45
Also follow me here (especially if you are a self taught developer):
✅My other channel: / @danpatrascutech
✅Facebook: / danpatrascutech
✅Instagram: / danpatrascutech
✅TikTok: / danpatrascutech
Негізгі бет Ғылым және технология PRACTICAL Refactoring of MediatR Request Handlers
Пікірлер: 19