Show / Hide Table of Contents

Interface IGetsRuleExecutor

An object which gets a service that executes validation rules.

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

There may be more than one implementation of IExecutesAllRules available, and this object allows the validation framework to choose between them, based upon the specified validation options.

Methods

| Improve this Doc View Source

GetRuleExecutorAsync(ResolvedValidationOptions, CancellationToken)

Gets the rule-execution service using an async API.

Declaration
Task<IExecutesAllRules> GetRuleExecutorAsync(ResolvedValidationOptions options, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
ResolvedValidationOptions options

The validation options.

System.Threading.CancellationToken token

An optional cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<IExecutesAllRules>

A task which contains the rule-execution service implementation.

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