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:
Sipke Schoorstra 2024-11-13 20:14:19 +01:00
parent 02f4dc9b8c
commit dcdd61ea62

View file

@ -309,6 +309,7 @@ services
})
.UseCSharp(options =>
{
options.DisableWrappers = disableVariableWrappers;
options.AppendScript("string Greet(string name) => $\"Hello {name}!\";");
options.AppendScript("string SayHelloWorld() => Greet(\"World\");");
})