Class ManifestRuleInfo
An immutable model which provides information about the configuration of a validation rule.
Inheritance
Inherited Members
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 SourceManifestRuleInfo(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 |
Properties
| Improve this Doc View SourceDependencyRules
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.
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.
ManifestValue
Gets information about the manifest value to which this rule applies.
Declaration
public ManifestValueInfo ManifestValue { get; }
Property Value
Type | Description |
---|---|
ManifestValueInfo |