IScriptHost Interface
Definition
Represents methods and properties declaration to support a script engine functionality.
Syntax
public interface IScriptHost : IDisposable
Properties
Compiled | When implemented by a class, gets boolean value indicating that script has been compiled and ready to be executed. |
CompileFailed | When implemented by a class, gets or sets boolean value indicating unsuccessful script compilation. |
CompilerErrors | When implemented by a class, gets list of compiler errors associated with the script being executed. |
HostItemsConfiguration | When implemented by a class, gets script host configuration |
ModulesDirectoryPath | When implemented by a class, gets or sets path for compiled script assemblies. |
OutputFileName | When implemented by a class, gets script assembly file name. |
RunnableScript | When implemented by a class, returns compiled script assembly. |
ScriptRun | When implemented by a class, gets |
Methods
Compile() | When implemented by a class, initializes script engine and compiles the script. |
Evaluate(String) | When implemented by a class, evaluates specified expression within already existing code. |
EvaluateExpression(String) | When implemented by a class, evaluates specified expression. |
EvaluateExpressionAsync(String, CancellationToken) | When implemented by a class, evaluates specified expression asynchronously. |
Reset() | When implemented by a class, closes the script engine and releases all resources. |
Run() | When implemented by a class, executes script starting from the main entry point. |
RunAsync(CancellationToken) | When implemented by a class, executes script asynchronously starting from the main entry point. |
RunFunction(String, Object[]) | When implemented by a class, executes specified function. |
RunFunctionAsync(String, Object[], CancellationToken) | When implemented by a class, executes specified function asynchronously. |