Show / Hide Table of Contents

Class ManifestRuleInfo

An immutable model which provides information about the configuration of a validation rule.

Inheritance
System.Object
ManifestRuleInfo
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.Abstractions.dll
Syntax
public class ManifestRuleInfo
Remarks

This type roughly corresponds to a ManifestRule. The key difference between that and this 'info' class is that this type is immutable and presents a read-only API.

Constructors

| Improve this Doc View Source

ManifestRuleInfo(ManifestRule)

Initialises an instance of ManifestRuleInfo. This is essentially a copy-constructor for a ManifestRule.

Declaration
public ManifestRuleInfo(ManifestRule manifestRule)
Parameters
Type Name Description
ManifestRule manifestRule

The manifest rule from which to create this instance.

Exceptions
Type Condition
System.ArgumentNullException

If manifestRule is null.

Properties

| Improve this Doc View Source

DependencyRules

Gets a collection of identifiers upon which the current rule depends.

Declaration
public IReadOnlyCollection<ManifestRuleIdentifier> DependencyRules { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyCollection<ManifestRuleIdentifier>
Remarks

A dependency rule is a rule which must have executed and passed before the current rule may be executed. If the dependency rule does not complete with a Passed outcome, then the current rule will not be executed and will automatically be recorded with a DependencyFailed outcome.

| Improve this Doc View Source

Identifier

Gets the rule's unique identifier.

Declaration
public ManifestRuleIdentifier Identifier { get; }
Property Value
Type Description
ManifestRuleIdentifier
Remarks

This value includes the rule's concrete type.

| Improve this Doc View Source

ManifestValue

Gets information about the manifest value to which this rule applies.

Declaration
public ManifestValueInfo ManifestValue { get; }
Property Value
Type Description
ManifestValueInfo
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX