Class FormulaEngine
Provides functionality for evaluating C# code dynamically and managing the formula engine's lifecycle.
public static class FormulaEngine
- Inheritance
-
FormulaEngine
Remarks
The FormulaEngine class allows for the evaluation of C# code snippets in an isolated scripting context using the Roslyn scripting API. It also provides a method to initialize the engine, which can be used to preload necessary libraries for improved performance during runtime.
Methods
- EvaluateAsync<T>(string, object?, object?, Type?, CancellationToken)
Evaluates the specified C# code asynchronously and returns the result as the specified type.
- Init()
Initializes formula engine. Do not need to call it directly. It can be called from the application startup in order to preload formula engine libraries.