Interface IAsyncValidator<T>
Defines asynchronous validation with cooperative cancellation.
Namespace: ValidationFramework
Assembly: ValidationFramework.dll
Syntax
public interface IAsyncValidator<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Methods
| Edit this page View SourceValidateAsync(T, CancellationToken)
Validates a value asynchronously.
Declaration
Task<ValidationResult> ValidateAsync(T value, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<ValidationResult> |