Class SingleRuleExecutorFactory
A factory service for implementations of IExeucutesSingleRule.
Inheritance
System.Object
SingleRuleExecutorFactory
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.RuleExecution
Assembly: CSF.Validation.dll
Syntax
public class SingleRuleExecutorFactory : IGetsSingleRuleExecutor
Constructors
| Improve this Doc View SourceSingleRuleExecutorFactory(IServiceProvider)
Initialises a new instance of SingleRuleExecutorFactory.
Declaration
public SingleRuleExecutorFactory(IServiceProvider services)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | services | A service provider |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
Methods
| Improve this Doc View SourceGetRuleExecutor(ResolvedValidationOptions)
Gets the service which may be used for executing validation rules.
Declaration
public IExeucutesSingleRule GetRuleExecutor(ResolvedValidationOptions options)
Parameters
Type | Name | Description |
---|---|---|
ResolvedValidationOptions | options | The validation options. |
Returns
Type | Description |
---|---|
IExeucutesSingleRule | A single-rule execution service instance. |