Table of Contents

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

ruleId string

The id of the rule that fired.

outputs IReadOnlyDictionary<string, object>

The outputs produced by the rule's actions (target → value).

branch RuleBranch

Which branch ran — the condition's actions or its else.

Exceptions

ArgumentException

ruleId is null or empty.

ArgumentNullException

outputs is null.