Class SqlEffect
public class SqlEffect : EffectBase, IEffect
- Inheritance
-
SqlEffect
- Implements
- Inherited Members
- Extension Methods
Constructors
SqlEffect(ILogger<SqlEffect>, SqlEffectOptions)
public SqlEffect(ILogger<SqlEffect> logger, SqlEffectOptions options)
Parameters
logger
ILogger<SqlEffect>options
SqlEffectOptions
Properties
Description
public override string Description { get; }
Property Value
Id
Id of the effect
public override string Id { get; }
Property Value
Remarks
This is the id used to identify the effect. Modellers use this id to indicate that an activity should have the effect
RequiredParameters
Parameters required to be set
public override Parameter[] RequiredParameters { get; }
Property Value
Remarks
The context parameter to Runtime.Execute must define at least the keys listed here.
ShouldRunActivityWillExecute
public override bool ShouldRunActivityWillExecute { get; }
Property Value
Methods
ActivityWillExecute(Model, Activity, Dictionary<string, string>)
Callback to run effect before activity execution
public override Task<Result> ActivityWillExecute(Model m, Activity a, Dictionary<string, string> arguments)
Parameters
m
Modela
Activityarguments
Dictionary<string, string>
Returns
- Task<Result>
A pair of a Result structure and an optional state object to be passed in to a subsequent call to ActivityDidExecute.
Remarks
Execute the effect, possibly returning an updated value. The effect executes before the underlying activity is executed, and if the effect fails (throws), execution of the activity is aborted.