Use MediatR with FluentValidation in the ASP.Net Core pipeline

What is it? For a while I am using MediatR to handle messages in my ASP.Net Core applications. (New to the Mediator design pattern, refactoring.guru has an exelent article about it)These messages (i.e. of type IRequest) need to be validated before the Handler processes them.In order to have this done, Fluent Validation is used and[…]