Show / Hide Table of Contents

Interface IExeucutesSingleRule

An object which can execute a single validation rule and get its result.

Namespace: CSF.Validation.RuleExecution
Assembly: CSF.Validation.Abstractions.dll
Syntax
public interface IExeucutesSingleRule

Methods

| Improve this Doc View Source

ExecuteRuleAsync(ExecutableRule, CancellationToken)

Executes the validation rule and returns its result.

Declaration
ValueTask<ValidationRuleResult> ExecuteRuleAsync(ExecutableRule rule, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
ExecutableRule rule

The rule to execute.

System.Threading.CancellationToken cancellationToken

An optional cancellation token.

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

A task containing the rule's result.

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