Table of Contents

Class ClearScriptScriptHost

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

Provides properties and methods to support script engine functionality based on System.CodeDom.Compiler technology.

public class ClearScriptScriptHost : ScriptHost, IScriptHost, IDisposable
Inheritance
ClearScriptScriptHost
Implements

Constructors

ClearScriptScriptHost(IScriptRun)

Initializes a new instance of the CodeDomScriptHost class with specified script runner.

Properties

Compiled

Gets boolean value indicating that script has been compiled and ready to be executed.

NeedToRecreateEngine

Gets or sets a boolean value indicates whether Engine need to be recreated.

RunnableScript

Returns compiled script assembly.

Script
ScriptCompiled

Indicates whether script has been successfully compiled.

Methods

Compile()

Initializes script engine and compiles the script.

Dispose(bool)
EvaluateImpl(string)
GenerateExpressionCode(string)
Interrupt()

Interrupts script execution and causes the script engine to throw an exception.

Reset()

Removes the script engine from the running state and disconnects automatically bound event handlers.

RunAsyncImpl(CancellationToken)
RunFunctionAsyncImpl(string, object[], CancellationToken)
RunFunctionImpl(string, object[])
RunImpl()