Show / Hide Table of Contents

Interface IAddsFailureMessagesToResult

A service object which adds huaman-readable feedback messages (as appropriate) to a ValidationResult.

Namespace: CSF.Validation.Messages
Assembly: CSF.Validation.Abstractions.dll
Syntax
public interface IAddsFailureMessagesToResult

Methods

| Improve this Doc View Source

GetResultWithMessagesAsync<TValidated>(IQueryableValidationResult<TValidated>, ResolvedValidationOptions, CancellationToken)

Gets a copy of the result but with human-readable feedback feedback messages added to the individual rule-results where applicable.

Declaration
Task<IQueryableValidationResult<TValidated>> GetResultWithMessagesAsync<TValidated>(IQueryableValidationResult<TValidated> result, ResolvedValidationOptions options, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IQueryableValidationResult<TValidated> result

The validation result.

ResolvedValidationOptions options

Validation options.

System.Threading.CancellationToken cancellationToken

An optional token which may be used to cancel the process prematurely.

Returns
Type Description
System.Threading.Tasks.Task<IQueryableValidationResult<TValidated>>

A task which exposes a copy of the validation result, but with additional feedback messages.

Type Parameters
Name Description
TValidated
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX