Show / Hide Table of Contents

Class ValidationLogicFactory

A factory service which creates instances of IValidationLogic from ManifestRule definitions.

Inheritance
System.Object
ValidationLogicFactory
Implements
IGetsValidationLogic
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.Rules
Assembly: CSF.Validation.dll
Syntax
public class ValidationLogicFactory : IGetsValidationLogic

Constructors

| Improve this Doc View Source

ValidationLogicFactory(IResolvesRule)

Initialises a new instance of ValidationLogicFactory.

Declaration
public ValidationLogicFactory(IResolvesRule ruleResolver)
Parameters
Type Name Description
IResolvesRule ruleResolver

A rule-resolving service.

Methods

| Improve this Doc View Source

GetValidationLogic(ManifestRule)

Gets a validation logic instance for the specified manifest rule definition.

Declaration
public IValidationLogic GetValidationLogic(ManifestRule ruleDefinition)
Parameters
Type Name Description
ManifestRule ruleDefinition

A manifest rule definition.

Returns
Type Description
IValidationLogic

A validation logic instance by which the rule's logic may be executed in a generalised manner.

Exceptions
Type Condition
ValidatorBuildingException

If the RuleConfiguration action is not null and throws an exception.

Implements

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