Disable variable wrappers in CSharp options
This change adds a line to disable variable wrappers in the CSharp options used in Elsa Server. This ensures scripts run without the overhead of variable wrappers, potentially improving performance. The adjustment simplifies the configuration and aligns with the project's need for optimized script execution.
This commit is contained in:
parent
02f4dc9b8c
commit
dcdd61ea62
|
|
@ -309,6 +309,7 @@ services
|
|||
})
|
||||
.UseCSharp(options =>
|
||||
{
|
||||
options.DisableWrappers = disableVariableWrappers;
|
||||
options.AppendScript("string Greet(string name) => $\"Hello {name}!\";");
|
||||
options.AppendScript("string SayHelloWorld() => Greet(\"World\");");
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue