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
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 SourceRuleConfigurationFactory(IGetsPropertySetterAction)
Initialises an instance of RuleConfigurationFactory.
Declaration
public RuleConfigurationFactory(IGetsPropertySetterAction setterFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| IGetsPropertySetterAction | setterFactory |
Methods
| Improve this Doc View SourceGetRuleConfigurationAction(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 |
| System.ArgumentException | If the |