Interface IAsyncValidator
- Namespace
- MADE.Data.Validation
- Assembly
- MADE.Data.Validation.dll
Defines an interface for a data validator that performs asynchronous validation.
public interface IAsyncValidator
- Extension Methods
Properties
FeedbackMessage
Gets or sets the feedback message to display when IsInvalid is true.
string FeedbackMessage { get; set; }
Property Value
IsDirty
Gets or sets a value indicating whether the data is dirty.
bool IsDirty { get; set; }
Property Value
IsInvalid
Gets or sets a value indicating whether the data provided is in an invalid state.
bool IsInvalid { get; set; }
Property Value
Key
Gets or sets the key associated with the validator.
string Key { get; set; }
Property Value
Methods
ValidateAsync(object, CancellationToken)
Executes data validation on the provided value asynchronously.
Task ValidateAsync(object value, CancellationToken cancellationToken = default)
Parameters
valueobjectThe value to be validated.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task
An asynchronous operation.