Click or drag to resize

IValidatorT Interface

Generic version of the IValidator interface which provides functionality to validate a ValidationContext.

Namespace:  Xploration.Validation
Assembly:  Xploration.Validation (in Xploration.Validation.dll) Version: 1.0.0-alpha1
Syntax
public interface IValidator<T> : IValidator

Type Parameters

T
The type to validate.

The IValidatorT type exposes the following members.

Methods
  NameDescription
Public methodValidateAsync(ValidationContext)
Validates the given ValidationContext asynchronously and determines if the context is valid.
(Inherited from IValidator.)
Public methodValidateAsync(ValidationContextT)
Validates the given ValidationContext asynchronously and determines if the context is valid.
Top
Extension Methods
  NameDescription
Public Extension MethodExecuteAsync(Object)Overloaded.
Validates the given value asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsync(ValidationContext)Overloaded.
Validates the given context asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsync(Object, Object)Overloaded.
Validates the given new value against the old value asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsyncT(T)Overloaded.
Validates the given value asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsyncT(ValidationContextT)Overloaded.
Validates the given context asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodExecuteAsyncT(T, T)Overloaded.
Validates the given new value against the old value asynchronously and returns the validation results.
(Defined by IValidatorExtensions.)
Public Extension MethodGetConcreteValidator
Returns the concrete validator of the current validator if the current validator is an IDelegatedValidator.
(Defined by IValidatorExtensions.)
Top
Remarks
Important note Important
Implementers of this interface are required to register validation results to the context during the validation process. See Results and AllResults
See Also