Table of Contents

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

string

IsDirty

Gets or sets a value indicating whether the data is dirty.

bool IsDirty { get; set; }

Property Value

bool

IsInvalid

Gets or sets a value indicating whether the data provided is in an invalid state.

bool IsInvalid { get; set; }

Property Value

bool

Key

Gets or sets the key associated with the validator.

string Key { get; set; }

Property Value

string

Methods

ValidateAsync(object, CancellationToken)

Executes data validation on the provided value asynchronously.

Task ValidateAsync(object value, CancellationToken cancellationToken = default)

Parameters

value object

The value to be validated.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

An asynchronous operation.