enif-lee / grpc-dotnet-validator

Simple request message validator for grpc.aspnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add validators from assemblies

nmakhmutov opened this issue · comments

In fluentvalidation you can add many validators just from assemblies. It's realy useful when you have a lot of validators in you project.

For instance:

var assemblies = AppDomain.CurrentDomain.GetAssemblies();
services.AddValidatorsFromAssemblies(assemblies);

And then all you classes inherits from AbstractValidator<T> should be added as validator in you project.
Please, could you add this functionality in your project?