Interface IExternalCompiler
OptimaJet.Workflow.Core.CodeActions.IExternalCompiler
Defines a compiler that replaces the built-in Roslyn compiler for generated code actions and returns them in a form that the workflow runtime can invoke.
Namespace: OptimaJet.Workflow.Core.CodeActions
public interface IExternalCompilerMethods
CodeActionsInvoker Compile(List<CodeForCompillation> codeItems, List<string> referenceLocations, bool isDebug, bool ignoreNotCompilled, out Dictionary<string, string> compileErrors) #Compiles generated code-action sources and creates an invoker for executing the resulting actions, conditions, and rules.
Parameters
Name
Type
Description
codeItemsList<CodeForCompillation>The generated compilation units, their source definitions, and the offsets required to map compilation diagnostics back to the original code-action bodies.
referenceLocationsList<String>The locations of assemblies registered with CodeActionsCompiller that the generated code can reference.
isDebugBooleanThe value of CodeActionsCompiller.DebugMode indicating whether debug compilation is requested.
ignoreNotCompilledBooleancompileErrorsDictionary<String, String>When this method returns, contains compilation diagnostics for omitted code actions. Each key identifies a code action by its CodeActionDefinition.Type and CodeActionDefinition.Name; the dictionary is empty when every code action was compiled.
Returns
Type
Description
CodeActionsInvokerA CodeActionsInvoker that can execute the successfully compiled code actions by their logical names.