Show / Hide Table of Contents

Interface IGetsValidationRuleResultWithMessage

An object which can get a copy of a single ValidationRuleResult, possibly with an added validation feedback message.

Namespace: CSF.Validation.Messages
Assembly: CSF.Validation.dll
Syntax
public interface IGetsValidationRuleResultWithMessage

Methods

| Improve this Doc View Source

GetRuleResultWithMessageAsync(ValidationRuleResult, CancellationToken)

Gets rule result based upon a specified result, possibly with an added feedback message.

Declaration
ValueTask<ValidationRuleResult> GetRuleResultWithMessageAsync(ValidationRuleResult ruleResult, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
ValidationRuleResult ruleResult

The rule result for which to enrich with a message.

System.Threading.CancellationToken cancellationToken

An optional cancellation token.

Returns
Type Description
System.Threading.Tasks.ValueTask<ValidationRuleResult>

A task containing a validation rule result.

Remarks

This method might return a task with a reference to the same result that was specified as the ruleResult parameter, or it might be a copy of that result with an added feedback message.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX