Show / Hide Table of Contents

Class RuleConfigurationFactory

A factory service which can get an executable action that will configure a validation rule instance based on a series of specified property values.

Inheritance
System.Object
RuleConfigurationFactory
Implements
IGetsRuleConfiguration
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CSF.Validation.ManifestModel
Assembly: CSF.Validation.dll
Syntax
public class RuleConfigurationFactory : IGetsRuleConfiguration

Constructors

| Improve this Doc View Source

RuleConfigurationFactory(IGetsPropertySetterAction)

Initialises an instance of RuleConfigurationFactory.

Declaration
public RuleConfigurationFactory(IGetsPropertySetterAction setterFactory)
Parameters
Type Name Description
IGetsPropertySetterAction setterFactory

Methods

| Improve this Doc View Source

GetRuleConfigurationAction(Type, IDictionary<String, Object>)

Gets the configuration action which sets the specified property values upon a rule instance.

Declaration
public Action<object> GetRuleConfigurationAction(Type ruleType, IDictionary<string, object> rulePropertyValues)
Parameters
Type Name Description
System.Type ruleType

The System.Type of validation rule for which the action should operate.

System.Collections.Generic.IDictionary<System.String, System.Object> rulePropertyValues

A collection of named property values to be set upon the rule instance by the action.

Returns
Type Description
System.Action<System.Object>

An executable action which sets the specified property values into the rule instance.

Exceptions
Type Condition
System.ArgumentNullException

If ruleType is null.

System.ArgumentException

If the rulePropertyValues contains any entries which correspond to either non-existent or non-settable properties of the ruleType.

Implements

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