Class NonGenericMessageProviderStrategy
A strategy for getting IGets
Inheritance
System.Object
NonGenericMessageProviderStrategy
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 NonGenericMessageProviderStrategy : IGetsNonGenericMessageProvider
Constructors
| Improve this Doc View SourceNonGenericMessageProviderStrategy(IServiceProvider)
Initialises a new instance of Non
Declaration
public NonGenericMessageProviderStrategy(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
System. |
serviceProvider | A service provider. |
Exceptions
Type | Condition |
---|---|
System. |
If the |
Methods
| Improve this Doc View SourceGetNonGenericFailureMessageProvider(MessageProviderTypeInfo, Type)
Gets the failure message provider for the specified type and original rule interface.
Declaration
public IGetsFailureMessage GetNonGenericFailureMessageProvider(MessageProviderTypeInfo providerType, Type ruleInterface)
Parameters
Type | Name | Description |
---|---|---|
Message |
providerType | The message provider type. |
System. |
ruleInterface | The interface used for the original rule. |
Returns
Type | Description |
---|---|
IGets |
An implementation of IGets |