Created
February 3, 2020 09:54
-
-
Save activebiz/a2a8b77921289af45de4820f25c57ddb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal static class MyValidationMiddlewareFieldExtensions | |
{ | |
public static IObjectFieldDescriptor UseValidator<T, V>(this IObjectFieldDescriptor descriptor) | |
where V : AbstractValidator<T> | |
{ | |
return descriptor.Use<MyValidationMiddleware<T, V>>(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment