Class ExecutableRule
A model for a rule which may be executed upon a validated value.
Inheritance
System.Object
ExecutableRule
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)
Namespace: CSF.Validation.RuleExecution
Assembly: CSF.Validation.Abstractions.dll
Syntax
public class ExecutableRule
Properties
| Improve this Doc View SourceIsEligibleToBeExecutedInParallel
Gets a value that indicates whether or not this rule may be executed in parallel.
Declaration
public bool IsEligibleToBeExecutedInParallel { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
This corresponds to whether or not the class that provides the rule logic is decorated with ParallelizableAttribute. In order to actually run validation with parallelisation, EnableRuleParallelization must also be set to true.
ManifestRule
Gets the manifest rule which the current instance corresponds to.
Declaration
public ManifestRule ManifestRule { get; set; }
Property Value
Type | Description |
---|---|
ManifestRule |
Result
Gets or sets the rule's result.
Declaration
public RuleResult Result { get; set; }
Property Value
Type | Description |
---|---|
RuleResult |
RuleIdentifier
Gets or sets the identifier for this particular rule.
Declaration
public RuleIdentifier RuleIdentifier { get; set; }
Property Value
Type | Description |
---|---|
RuleIdentifier |
RuleLogic
Gets the executable rule logic.
Declaration
public IValidationLogic RuleLogic { get; set; }
Property Value
Type | Description |
---|---|
IValidationLogic |
ValidatedValue
Gets the value to be validated by the current rule.
Declaration
public ValidatedValue ValidatedValue { get; set; }
Property Value
Type | Description |
---|---|
ValidatedValue |
Methods
| Improve this Doc View SourceToString()
Gets a string which represents the current executable rule.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A human-readable string. |
Overrides
System.Object.ToString()