Skip to main content

IAsyncValidationContext interface

Namespace: NextDesign.Core

Description

Context for asynchronous validation.

Affiliation area

NameDescription
ModelAPIs to access the model.

Property

NameDescription
CancellationTokenGets the cancellation token.
CancellationTokenSourceGets the source object of the cancellation token.
IsCancelRequestedChecks if cancellation has been requested for a validation running in the context.
OptionsGets validation options.
This validation option is a snapshot of the validation options specified during context creation.
Even if you change the setting for the option acquired here, it will not be reflected in the verification process.
ResultGets the validation result.
However, null is returned if validation has not been performed or is being performed.
StateGets the running state of the validation.
TargetModelGets the origin model to validate.

Method

NameDescription
CancelCancels the validation running in the context.
RegisterOnFinishRegisters an additional verification action to run only once at the end of verification.
RegisterOnModelValidateRegisters additional validation actions to perform during model validation.
RegisterOnStartRegisters an additional verification action to run only once when verification starts.
ValidateAsyncValidate asynchronously.
For more information on validation, see the IModel Validate(ValidationOptions options) method.