Show / Hide Table of Contents

Interface IGetsNonGenericMessageCriteria

An object which can get an instance of IHasFailureMessageUsageCriteria from an instance of MessageProviderInfo.

Namespace: CSF.Validation.Messages
Assembly: CSF.Validation.Abstractions.dll
Syntax
public interface IGetsNonGenericMessageCriteria

Methods

| Improve this Doc View Source

GetNonGenericMessageCriteria(MessageProviderInfo, Type)

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

Declaration
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.

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