Show / Hide Table of Contents

Class MessageProviderInfo

Represents information about a message provider type. An object which implements IGetsFailureMessage, possibly via an adapter.

Inheritance
System.Object
MessageProviderTypeInfo
MessageProviderInfo
InstanceMessageProviderInfo
LazyMessageProviderInfo
Inherited Members
MessageProviderTypeInfo.ProviderType
MessageProviderTypeInfo.ProviderTypeInfo
MessageProviderTypeInfo.Priority
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.Abstractions.dll
Syntax
public abstract class MessageProviderInfo : MessageProviderTypeInfo
Remarks

Because the implementation at MessageProvider might be wrapped in an adapter, the original/unwrapped provider is available from GetOriginalProvider().

Constructors

| Improve this Doc View Source

MessageProviderInfo(MessageProviderTypeInfo)

Initialises a new instance of MessageProviderInfo.

Declaration
protected MessageProviderInfo(MessageProviderTypeInfo copyFrom)
Parameters
Type Name Description
MessageProviderTypeInfo copyFrom

An instance to copy from.

Exceptions
Type Condition
System.ArgumentNullException

If copyFrom is null.

Properties

| Improve this Doc View Source

MessageProvider

Gets a reference to the message provider instance.

Declaration
public abstract IGetsFailureMessage MessageProvider { get; }
Property Value
Type Description
IGetsFailureMessage

Methods

| Improve this Doc View Source

GetOriginalProvider()

Gets a reference to the original message provider object, removing any potential layers of 'wrapper' objects which might be present upon MessageProvider.

Declaration
public object GetOriginalProvider()
Returns
Type Description
System.Object

The original/unwrapped message provider object.

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