Class MessageProviderInfo
Represents information about a message provider type. An object which implements IGetsFailureMessage, possibly via an adapter.
Inheritance
System.Object
MessageProviderInfo
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.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 SourceMessageProviderInfo(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 |
Properties
| Improve this Doc View SourceMessageProvider
Gets a reference to the message provider instance.
Declaration
public abstract IGetsFailureMessage MessageProvider { get; }
Property Value
Type | Description |
---|---|
IGetsFailureMessage |
Methods
| Improve this Doc View SourceGetOriginalProvider()
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. |