Interface IExpressionEnvironment
- Namespace
- Acuit.Pinpoint.Workflows.Expressions
- Assembly
- Acuit.Pinpoint.Workflows.dll
An environment within which expressions are compiled.
public interface IExpressionEnvironment
Remarks
The expression environment provides the following for compiling C# expressions:
- Assembly references
- Imported namespaces
- Global properties: See IExpressionGlobals for the available global properties.
Methods
CreateCSharpScriptRunner<TValue>(string)
Creates a script runner for a C# expression.
ScriptRunner<TValue> CreateCSharpScriptRunner<TValue>(string code)
Parameters
codestringThe C# expression.
Returns
- ScriptRunner<TValue>
The script runner, which is a delegate that will run the compiled code when invoked.
Type Parameters
TValueThe C# expression return type.
Remarks
C# expressions with the same code and return type are cached and reused.
Exceptions
- ArgumentNullException
codeis null.- Exception
There was an error compiling
code. Specific exceptions are not documented.