I\'m using ASP.NET Core, the built-in container, and MediatR 3 which supports \"behavior\" pipelines:
public class MyRequest : IRequest { // ..
I've packed .net core integration into nuget, feel free to use it: https://www.nuget.org/packages/MediatR.Extensions.FluentValidation.AspNetCore
Just insert in configuration section:
services.AddFluentValidation(new[] {typeof(GenerateInvoiceHandler).GetTypeInfo().Assembly});
GitHub