Show / Hide Table of Contents

Interface IGetsRuleBuilder

An object which gets a RuleBuilder<TRule> from a specified context and rule definition action.

Namespace: CSF.Validation.ValidatorBuilding
Assembly: CSF.Validation.dll
Syntax
public interface IGetsRuleBuilder

Methods

| Improve this Doc View Source

GetRuleBuilder<TRule>(ValidatorBuilderContext, Action<IConfiguresRule<TRule>>)

Gets a rule builder instance from the specified context and rule-definition action.

Declaration
IConfiguresContext GetRuleBuilder<TRule>(ValidatorBuilderContext context, Action<IConfiguresRule<TRule>> ruleDefinition)
Parameters
Type Name Description
ValidatorBuilderContext context

Contextual information from which to build this rule.

System.Action<IConfiguresRule<TRule>> ruleDefinition

An optional configuration/definition action which will be used to customise the rule.

Returns
Type Description
IConfiguresContext

A rule builder object.

Type Parameters
Name Description
TRule

The type of object which the rule validates.

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