Constructor FiredRule
- Namespace
- RuleWright.Core
- Assembly
- RuleWright.Core.dll
FiredRule(string, IReadOnlyDictionary<string, object?>, RuleBranch)
Creates a fired-rule record.
public FiredRule(string ruleId, IReadOnlyDictionary<string, object?> outputs, RuleBranch branch = RuleBranch.Then)
Parameters
ruleIdstringThe id of the rule that fired.
outputsIReadOnlyDictionary<string, object>The outputs produced by the rule's actions (target → value).
branchRuleBranchWhich branch ran — the condition's
actionsor itselse.
Exceptions
- ArgumentException
ruleIdis null or empty.- ArgumentNullException
outputsis null.