Interface IValidationRule
Interface for ValidationRules which contain information about how to evaluate the validation rule, as well as how to trigger the validation
public interface IValidationRule
Properties
IsAsyncRule
bool IsAsyncRule { get; }
Property Value
Scope
ValidationScope Scope { get; }
Property Value
Methods
DefaultValidationScope()
public static ValidationScope DefaultValidationScope()
Returns
Evaluate(IValidatable)
ValidationResult Evaluate(IValidatable subject)
Parameters
subjectIValidatable
Returns
EvaluateAsync(IValidatable)
Task<ValidationResult> EvaluateAsync(IValidatable subject)
Parameters
subjectIValidatable