Class NullExcludingMessageProviderInfoDecorator
A decorator for IGetsMessageProviderInfo which excludes message providers which have a null implementation.
Inheritance
System.Object
NullExcludingMessageProviderInfoDecorator
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 NullExcludingMessageProviderInfoDecorator : IGetsMessageProviderInfo
Constructors
| Improve this Doc View SourceNullExcludingMessageProviderInfoDecorator(IGetsMessageProviderInfo)
Initialises a new instance of NullExcludingMessageProviderInfoDecorator.
Declaration
public NullExcludingMessageProviderInfoDecorator(IGetsMessageProviderInfo wrapped)
Parameters
Type | Name | Description |
---|---|---|
IGetsMessageProviderInfo | wrapped | The wrapped service. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
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. |