Show / Hide Table of Contents

Class DoubleGenericMessageProviderStrategy

A strategy for getting IGetsFailureMessage from a type that implements the generic IGetsFailureMessage<TValidated, TParent>.

Inheritance
System.Object
DoubleGenericMessageProviderStrategy
Implements
IGetsNonGenericMessageProvider
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 DoubleGenericMessageProviderStrategy : IGetsNonGenericMessageProvider

Constructors

| Improve this Doc View Source

DoubleGenericMessageProviderStrategy(IServiceProvider)

Initialises a new instance of DoubleGenericMessageProviderStrategy.

Declaration
public DoubleGenericMessageProviderStrategy(IServiceProvider serviceProvider)
Parameters
Type Name Description
System.IServiceProvider serviceProvider

A service provider.

Exceptions
Type Condition
System.ArgumentNullException

If the serviceProvider is null.

Methods

| Improve this Doc View Source

GetNonGenericFailureMessageProvider(MessageProviderTypeInfo, Type)

Gets the failure message provider for the specified type and original rule interface.

Declaration
public IGetsFailureMessage GetNonGenericFailureMessageProvider(MessageProviderTypeInfo providerType, Type ruleInterface)
Parameters
Type Name Description
MessageProviderTypeInfo providerType

The message provider type.

System.Type ruleInterface

The interface used for the original rule.

Returns
Type Description
IGetsFailureMessage

An implementation of IGetsFailureMessage.

Implements

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