Table of Contents

Constructor RuleAction

Namespace
RuleWright.Core
Assembly
RuleWright.Core.dll

RuleAction(string, string, ValueExpression)

Creates a rule action from a value expression.

public RuleAction(string type, string target, ValueExpression value)

Parameters

type string

The action type identifier; setOutput.

target string

The output key the action writes.

value ValueExpression

The value expression evaluated to produce the output.

Exceptions

ArgumentException

type or target is null or empty.

ArgumentNullException

value is null.

RuleAction(string, string, object?)

Creates a rule action that writes a constant scalar, a convenience for the common case (equivalent to passing new LiteralExpression(constant)).

public RuleAction(string type, string target, object? constant)

Parameters

type string

The action type identifier; setOutput.

target string

The output key the action writes.

constant object

The constant value written to target.

Exceptions

ArgumentException

type or target is null or empty.