Show / Hide Table of Contents

Class NullExcludingMessageProviderInfoDecorator

A decorator for IGetsMessageProviderInfo which excludes message providers which have a null implementation.

Inheritance
System.Object
NullExcludingMessageProviderInfoDecorator
Implements
IGetsMessageProviderInfo
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 Source

NullExcludingMessageProviderInfoDecorator(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 wrapped is null.

Methods

| Improve this Doc View Source

GetMessageProviderInfo(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.

Implements

IGetsMessageProviderInfo
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX