Validator Behavior in MediatR pipeline within RCommon.
The validator behavior is useful anytime you want to de-couple request/DTO validation from your application logic. This is implemented in in MediatR via a FluentValidation extension.
Implementation
The validator behavior is injected as part of the MediatR pipeline and performs validations on incoming requests which have objects that match the validation pattern that is registered automatically via dependency injection (see usage):