Table of Contents

Interface IDataValueValidator

Namespace
Acuit.Pinpoint.Workflows.Testing.Validation
Assembly
Acuit.Pinpoint.Workflows.Testing.dll

A data value validator.

public interface IDataValueValidator

Methods

InitializeAsync(ActivityContext, IDataValueDescriptor, CancellationToken)

Initializes the validator.

Task<IInitializedDataValueValidator> InitializeAsync(ActivityContext context, IDataValueDescriptor dataValueDescriptor, CancellationToken cancellationToken)

Parameters

context ActivityContext

The activity context.

dataValueDescriptor IDataValueDescriptor

The data value descriptor.

cancellationToken CancellationToken

A CancellationToken that can request cancellation.

Returns

Task<IInitializedDataValueValidator>

A task that represents the asynchronous operation. The value of its Result property contains an IInitializedDataValueValidator representing the initialized validator.

Exceptions

ArgumentNullException

context is null.

ArgumentNullException

dataValueDescriptor is null.

Exception

The validator could not be initialized. The exception type will depend on the implementation.