Show / Hide Table of Contents

Class RuleWithMessageProviderFactory

Default implementation of IGetsRuleWithMessageProvider.

Inheritance
System.Object
RuleWithMessageProviderFactory
Implements
IGetsRuleWithMessageProvider
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 RuleWithMessageProviderFactory : IGetsRuleWithMessageProvider

Constructors

| Improve this Doc View Source

RuleWithMessageProviderFactory(IServiceProvider)

Initialises a new instance of RuleWithMessageProviderFactory.

Declaration
public RuleWithMessageProviderFactory(IServiceProvider services)
Parameters
Type Name Description
System.IServiceProvider services

A service provider

Exceptions
Type Condition
System.ArgumentNullException

If services is null.

Methods

| Improve this Doc View Source

GetRuleWithMessageProvider(ResolvedValidationOptions)

Gets a the rule/message provider applicable for the specified options.

Declaration
public IGetsValidationRuleResultWithMessage GetRuleWithMessageProvider(ResolvedValidationOptions options)
Parameters
Type Name Description
ResolvedValidationOptions options

Validation options.

Returns
Type Description
IGetsValidationRuleResultWithMessage

A rule/message provider.

Implements

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