Table of Contents

Interface IScriptRun

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

Represents methods and properties declaration to describe runner for script engine.

public interface IScriptRun : IScriptRunBase, ITypeDefinitionsLocator, IScriptFileLoader

Properties

ScriptHost

When implemented by a class, returns object that implements IScriptHost interface for this runner.

ScriptLanguage

When implemented by a class, gets or sets programming language of the script.

ScriptSource

When implemented by a class, gets source of the script to execute.

WaitForDebuggerOnStart

When implemented by a class, gets of sets a boolean value indicates whether script engine is to wait for a debugger connection and schedule a pause before executing the first line of application script code.

Methods

CreateScriptHost()

When implemented by a class, creates a new IScriptHost object with appropriate characteristics.

EvaluateExpressionAsync(string, CancellationToken)

When implemented by a class, evaluates specified expression asynchronously.

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.