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 SourceGetRuleBuilder<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. |