Fluent Validation in MediatR with Results
Hey everyone, I'm Steve Smith aka ardalis, of NimblePros!
In this video we extend the previous video's MediatR behavior-based validation to work with a Result abstraction. In this way, we're able to return the validation errors back to the API endpoint in a way that allows it to return a 400 Bad Request rather than just a 500 Server Error.
Get The Source Code
mailchi.mp/ard...
Links
github.com/ard...
github.com/jbo...
github.com/Flu...
github.com/ard...
C# Generics Best Practices Course:
www.pluralsigh...
Check out my courses:
ardalis.com/tr...
www.pluralsigh...
Consulting and Training: NimblePros.com and @nimblepros
Developer Group Mentoring: devBetter.com
Free Weekly Email Tips:
ardalis.com/tips/
If you read this far, I hope you liked the video and consider subscribing to my channel!
Find me:
ardalis.com
/ ardalis
github.com/ard...
/ stevenandrewsmith
bsky.app/profi...
#dotnet #deviq #ardalis #nimblepros #visualstudio #csharp #designpatterns #nuget #cleancode #validation #fluentvalidation #result #cleanarchitecture #mediatr #chainofresponsibility
6 окт 2024