Assembly: OptimaJet.Workflow.Core

Class ExpressionsCompilerOptions

OptimaJet.Workflow.Core.CodeActions.ExpressionsCompilerOptions

Configures batch-compilation concurrency and optional garbage collection after compiled delegates are created by ExpressionsCompiler.

public class ExpressionsCompilerOptions

Properties

public int DegreeOfParallelism { get; set; } #
Gets or sets the maximum number of transitions processed concurrently when ExpressionsCompiler.CompileExpressions(ProcessDefinition) or ExpressionsCompiler.CompileSubprocessNameGetters(ProcessDefinition) compiles delegates for a process scheme.
public bool ForceGarbageCollection { get; set; } #
Gets or sets whether GC.Collect() is invoked after each expression delegate is successfully compiled.
public static ExpressionsCompilerOptions Default { get; } #
Gets the shared mutable options instance used as the initial value of ExpressionsCompiler.Options.

Remarks

Changes made to this instance are retained and affect ExpressionsCompiler.Options while it references the same instance.
public static ExpressionsCompilerOptions Forced { get; } #
Gets the shared mutable preset intended to reduce peak memory usage by compiling one transition delegate at a time and requesting a garbage-collection cycle after each compilation.

Remarks

Changes made to this shared instance are retained for subsequent uses.