public override bool ShouldValidateAsynchronously(IValidationContext context)
 {
     return(context.IsAsync() || Options.AsyncCondition != null);
 }
 public override bool ShouldValidateAsynchronously(IValidationContext context)
 {
     return(context.IsAsync() || base.ShouldValidateAsynchronously(context));
 }
Esempio n. 3
0
 public override bool ShouldValidateAsynchronously(IValidationContext context)
 {
     return(_isAsync && context.IsAsync());
 }