Click or drag to resize

EdiMessageIsValidAsync(CancellationToken, ValidationSettings) Method

Validates a message async according to its EDI DOM validation attributes and its structure.

Namespace: EdiFabric.Core.Model.Edi
Assembly: EdiFabric (in EdiFabric.dll) Version: 1.0.0
public Task<Tuple<bool, MessageErrorContext>> IsValidAsync(
	CancellationToken token,
	ValidationSettings validationSettings = null


token  CancellationToken
The async cancellation token.
validationSettings  ValidationSettings  (Optional)
The validation settings.

Return Value

TaskTupleBoolean, MessageErrorContext
Whether the EDI message is valid or not and the error context if any errors were found.
See Also