Custom Rule Constructor
Initializes a new CustomRule with the specified identifier,
display name, and evaluation delegate.
Definition
Namespace: Numerics.NET.Statistics.ProcessControl
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.4.0
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.4.0
public CustomRule(
string id,
string displayName,
Func<RuleEvaluationContext, IReadOnlyList<RuleViolation>> evaluator
)Parameters
- id String
- The stable programmatic identifier for this rule.
- displayName String
- The user-facing display name for this rule.
- evaluator Func<RuleEvaluationContext, IReadOnlyList<RuleViolation>>
- The delegate that implements the rule logic.