Table of Contents

Constructor RuleTrace

Namespace
RuleWright.Core
Assembly
RuleWright.Core.dll

RuleTrace(string, bool, bool, ConditionTraceNode?)

Creates a rule trace entry.

public RuleTrace(string ruleId, bool fired, bool skipped, ConditionTraceNode? condition)

Parameters

ruleId string

The rule's id.

fired bool

Whether the rule's condition passed.

skipped bool

Whether the rule was never evaluated. Prefer the RuleSkipReason overload, which also records why; this one reports a skip as Disabled.

condition ConditionTraceNode

The condition trace tree, or null when the rule was skipped.

Exceptions

ArgumentException

ruleId is null or empty.

RuleTrace(string, bool, RuleSkipReason, ConditionTraceNode?)

Creates a rule trace entry, recording why the rule was skipped when it was.

public RuleTrace(string ruleId, bool fired, RuleSkipReason skipReason, ConditionTraceNode? condition)

Parameters

ruleId string

The rule's id.

fired bool

Whether the rule's condition passed.

skipReason RuleSkipReason

Why the rule was never evaluated, or None.

condition ConditionTraceNode

The condition trace tree, or null when the rule was skipped.

Exceptions

ArgumentException

ruleId is null or empty.