CQRS Validation With MediatR and FluentValidation in ASP.NET Core Web API

Published: 06 May 2024
on channel: Code Maze
2,343
66

►► Check out our courses: https://bit.ly/cdmz-courses
►► Support us on Patreon and get the source code:   / codemaze  

In this video, you will learn how to implement validation using FluentValidtaion with CQRS and MediatR in the ASP.NET Core Web API application.

Often when we build applications, we have many cross-cutting concerns. These include authorization, validating, and logging.

Instead of repeating this logic throughout our handlers, we can use Behaviors. Behaviors are very similar to ASP.NET Core middleware. They accept a request, perform some action, and then (optionally) pass along the request.

So, let’s get to work to see how we can use behaviors for the validation logic.

LINKS MENTIONED IN THE VIDEO
►► CQRS and Mediatr Queries -    • CQRS And MediatR in ASP.NET Core -  I...  
►► CQRS and Mediatr Commands -    • CQRS And MediatR In ASP.NET Core -  C...  
►► Problem Details -    • How to Use the ProblemDetails Class t...  

FOLLOW US ON SOCIAL MEDIA!
►►   / marinko-spasojevic  
►►   / codemazeblog  
►►   / codemazeblog  


Watch video CQRS Validation With MediatR and FluentValidation in ASP.NET Core Web API online without registration, duration hours minute second in high quality. This video was added by user Code Maze 06 May 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,343 once and liked it 66 people.