Class MessageProviderTypeInfo
Represents information about a message provider type.
Inherited Members
Namespace: CSF.Validation.Messages
Assembly: CSF.Validation.Abstractions.dll
Syntax
public class MessageProviderTypeInfo
Constructors
| Improve this Doc View SourceMessageProviderTypeInfo(MessageProviderTypeInfo)
Initialises a new instance of MessageProviderTypeInfo.
Declaration
protected MessageProviderTypeInfo(MessageProviderTypeInfo copyFrom)
Parameters
Type | Name | Description |
---|---|---|
MessageProviderTypeInfo | copyFrom | An instance to copy from. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
MessageProviderTypeInfo(Type, Int32)
Initialises a new instance of MessageProviderTypeInfo.
Declaration
public MessageProviderTypeInfo(Type providerType, int priority)
Parameters
Type | Name | Description |
---|---|---|
System.Type | providerType | The provider type. |
System.Int32 | priority | The priority. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
Properties
| Improve this Doc View SourcePriority
Gets the numeric priority of the current provider instane. A higher number means a more important provider.
Declaration
public int Priority { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ProviderType
Gets a System.Type object relating to the message provider.
Declaration
public Type ProviderType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Remarks
Where the current MessageProviderTypeInfo is a specialisation which also provides access to the message provider itself, this type relates to the original message provider type. Even if the actual message provider instance is wrapped using an adapter or similar, this type relates to the original/innermost type in the structure of wrappers.
ProviderTypeInfo
Gets a System.Reflection.TypeInfo object relating to the message provider.
Declaration
public TypeInfo ProviderTypeInfo { get; }
Property Value
Type | Description |
---|---|
System.Reflection.TypeInfo |
Remarks
Where the current MessageProviderTypeInfo is a specialisation which also provides access to the message provider itself, this type info relates to the original message provider type. Even if the actual message provider instance is wrapped using an adapter or similar, this type info relates to the original/innermost type info in the structure of wrappers.