Show / Hide Table of Contents

Class FailureMessageUsageCriteriaFactory

A service which gets a IHasFailureMessageUsageCriteria for the specified IGetsFailureMessage

Inheritance
System.Object
FailureMessageUsageCriteriaFactory
Implements
IGetsNonGenericMessageCriteria
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 FailureMessageUsageCriteriaFactory : IGetsNonGenericMessageCriteria

Methods

| Improve this Doc View Source

GetNonGenericMessageCriteria(MessageProviderInfo, Type)

Gets the usage criteria from the specified message provider and interface type.

Declaration
public IHasFailureMessageUsageCriteria GetNonGenericMessageCriteria(MessageProviderInfo messageProviderInfo, Type ruleInterface)
Parameters
Type Name Description
MessageProviderInfo messageProviderInfo

Message provider info.

System.Type ruleInterface

The interface used for the original validation rule.

Returns
Type Description
IHasFailureMessageUsageCriteria

An instance of IHasFailureMessageUsageCriteria.

Remarks

This method should never return null. If the message provider cannot get a suitable implementation of IHasFailureMessageUsageCriteria then a matches-all criteria instance should be returned.

Implements

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