Table of Contents

Interface IValidationRule

Namespace
The.Values
Assembly
Instagile.dll

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

bool

Scope

ValidationScope Scope { get; }

Property Value

ValidationScope

Methods

DefaultValidationScope()

public static ValidationScope DefaultValidationScope()

Returns

ValidationScope

Evaluate(IValidatable)

ValidationResult Evaluate(IValidatable subject)

Parameters

subject IValidatable

Returns

ValidationResult

EvaluateAsync(IValidatable)

Task<ValidationResult> EvaluateAsync(IValidatable subject)

Parameters

subject IValidatable

Returns

Task<ValidationResult>