Class RuleWithMessageProviderFactory
Default implementation of IGetsRuleWithMessageProvider.
Inheritance
System.Object
RuleWithMessageProviderFactory
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.Messages
Assembly: CSF.Validation.dll
Syntax
public class RuleWithMessageProviderFactory : IGetsRuleWithMessageProvider
Constructors
| Improve this Doc View SourceRuleWithMessageProviderFactory(IServiceProvider)
Initialises a new instance of RuleWithMessageProviderFactory.
Declaration
public RuleWithMessageProviderFactory(IServiceProvider services)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | services | A service provider |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
Methods
| Improve this Doc View SourceGetRuleWithMessageProvider(ResolvedValidationOptions)
Gets a the rule/message provider applicable for the specified options.
Declaration
public IGetsValidationRuleResultWithMessage GetRuleWithMessageProvider(ResolvedValidationOptions options)
Parameters
Type | Name | Description |
---|---|---|
ResolvedValidationOptions | options | Validation options. |
Returns
Type | Description |
---|---|
IGetsValidationRuleResultWithMessage | A rule/message provider. |