C-Sharp Script Options
Aug 15 2023 at 12:00 AM
- Optimization Levels
File | ./Data/Config/CSharpScriptOptions.json |
---|
NuGet Package | IoTnxt.Raptor.Script.CSharp |
Program.cs Stub | .AddRaptorCSharpScript() |
Required By | Any Service that uses scripting. |
This is used to control the compilation of C# scripts.
{
"DeviceCommunicatorOptions": {
"Debug": false,
"OptimizationLevel": "Release",
"WarningsAsErrors": true,
"AsyncTimeout": 10000
}
}
Property | Description |
---|
Debug | If true, turns on debug logging. Defaults to false. |
OptimizationLevel | Determines the level of optimization of the generated code. See below. Defaults to Release. |
WarningsAsErrors | Whether to treat warnings as errors. Defaults to true. |
AsyncTimeout | Asynchronous timeout, in milliseconds, used for various calls. Defaults to 10,000 (10 seconds) |
Optimization Levels
Level | Description |
---|
Debug | Disables all optimizations and instruments of the generated code to improve the debugging experience. |
Release | Enables all optimizations, the debugging experience might be degraded. |