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
typestringThe action type identifier;
setOutput.targetstringThe output key the action writes.
valueValueExpressionThe value expression evaluated to produce the output.
Exceptions
- ArgumentException
typeortargetis null or empty.- ArgumentNullException
valueis 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
typestringThe action type identifier;
setOutput.targetstringThe output key the action writes.
constantobjectThe constant value written to
target.
Exceptions
- ArgumentException
typeortargetis null or empty.