Class LazyMessageProviderInfo
A specialisation of MessageProviderInfo which resolves the MessageProvider lazily, only instantiating it upon usage.
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 class LazyMessageProviderInfo : MessageProviderInfo
Constructors
| Improve this Doc View SourceLazyMessageProviderInfo(MessageProviderInfo, Int32)
Initialises a new instance of LazyMessageProviderInfo.
Declaration
public LazyMessageProviderInfo(MessageProviderInfo copyFrom, int priority)
Parameters
Type | Name | Description |
---|---|---|
MessageProviderInfo | copyFrom | Message provider info to copy-from. |
System.Int32 | priority | A new priority value, replacing that within |
LazyMessageProviderInfo(MessageProviderTypeInfo, Lazy<IGetsFailureMessage>)
Initialises a new instance of LazyMessageProviderInfo.
Declaration
public LazyMessageProviderInfo(MessageProviderTypeInfo typeInfo, Lazy<IGetsFailureMessage> messageProvider)
Parameters
Type | Name | Description |
---|---|---|
MessageProviderTypeInfo | typeInfo | Message provider type info. |
System.Lazy<IGetsFailureMessage> | messageProvider | A lazy message provider. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If either |
Properties
| Improve this Doc View SourceMessageProvider
Gets a reference to the message provider instance.
Declaration
public override IGetsFailureMessage MessageProvider { get; }
Property Value
Type | Description |
---|---|
IGetsFailureMessage |