Class MessageProviderInfoFactory
A factory which gets a collection of MessageProviderInfo for a validation rule result.
Inheritance
System.Object
MessageProviderInfoFactory
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 MessageProviderInfoFactory : IGetsMessageProviderInfo
Remarks
This implementation only filters the candidate MessageProviderInfo which are returned by the manner in which the IGetsCandidateMessageTypes would filter them.
Constructors
| Improve this Doc View SourceMessageProviderInfoFactory(IGetsCandidateMessageTypes, IGetsMessageProviderFactoryStrategy)
Initialises a new instance of MessageProviderInfoFactory.
Declaration
public MessageProviderInfoFactory(IGetsCandidateMessageTypes typeRegistry, IGetsMessageProviderFactoryStrategy factoryStrategySelector)
Parameters
| Type | Name | Description |
|---|---|---|
| IGetsCandidateMessageTypes | typeRegistry | A provider type registry. |
| IGetsMessageProviderFactoryStrategy | factoryStrategySelector | A service that gets strategies for message provider factories. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | If any parameter is null. |
Methods
| Improve this Doc View SourceGetMessageProviderInfo(ValidationRuleResult)
Gets a collection of MessageProviderInfo which are applicable for the specified rule result.
Declaration
public IEnumerable<MessageProviderInfo> GetMessageProviderInfo(ValidationRuleResult ruleResult)
Parameters
| Type | Name | Description |
|---|---|---|
| ValidationRuleResult | ruleResult | A validation rule result. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<MessageProviderInfo> | A collection of message provider info objects. |