Table of Contents

Interface IScriptHost

Namespace
Alternet.Scripter.TypeScript
Assembly
Alternet.Scripter.TypeScript.v9.dll

Represents methods and properties declaration to support a script engine functionality.

public interface IScriptHost : IDisposable

Properties

CompileFailed

When implemented by a class, gets or sets boolean value indicating unsuccessful script compilation.

Compiled

When implemented by a class, gets boolean value indicating that script has been compiled and ready to be executed.

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 IScriptRun associated this script host.

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.