Class CriteriaApplyingMessageProviderInfoDecorator
A decorator for IGets
Inheritance
Implements
Inherited Members
Namespace: CSF.Validation.Messages
Assembly: CSF.Validation.dll
Syntax
public class CriteriaApplyingMessageProviderInfoDecorator : IGetsMessageProviderInfo
Remarks
This service uses an implementation of IGets
Thus, any message provider which implements an appropriate criteria-applying interface and which is permitted by that criteria will always have a higher priority than an equivalent message provider which does not implement a criteria interface.
Constructors
| Improve this Doc View SourceCriteriaApplyingMessageProviderInfoDecorator(IGetsMessageProviderInfo, IGetsNonGenericMessageCriteria)
Initialises a new instance of Criteria
Declaration
public CriteriaApplyingMessageProviderInfoDecorator(IGetsMessageProviderInfo wrapped, IGetsNonGenericMessageCriteria criteriaFactory)
Parameters
Type | Name | Description |
---|---|---|
IGets |
wrapped | A wrapped implementation |
IGets |
criteriaFactory | A criteria factory. |
Exceptions
Type | Condition |
---|---|
System. |
If any parameter is null. |
Methods
| Improve this Doc View SourceGetMessageProviderInfo(ValidationRuleResult)
Gets a collection of Message
Declaration
public IEnumerable<MessageProviderInfo> GetMessageProviderInfo(ValidationRuleResult ruleResult)
Parameters
Type | Name | Description |
---|---|---|
Validation |
ruleResult | A validation rule result. |
Returns
Type | Description |
---|---|
System. |
A collection of message provider info objects. |