예제 #1
0
 /// <summary>
 /// Registers Fluent Validation as the validation provider. After adding simply register your
 /// validators with the IServiceCollection in Setup() as you would normally.
 /// </summary>
 /// <param name="functionHostBuilder"></param>
 /// <returns></returns>
 public static IFunctionHostBuilder AddFluentValidation(this IFunctionHostBuilder functionHostBuilder)
 {
     functionHostBuilder.AddValidator <Validator>();
     return(functionHostBuilder);
 }