Рет қаралды 942
►► Master Web API development Best Practices: bit.ly/3TnqoFQ
►► Build great web apps in Blazor WebAssembly: bit.ly/437g87T
►► 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 AS...
►► CQRS and Mediatr Commands - • CQRS And MediatR In AS...
►► Problem Details - • How to Use the Problem...
FOLLOW US ON SOCIAL MEDIA!
►► / marinko-spasojevic
►► / codemazeblog
►► / codemazeblog