Table of Contents

Class IronPythonScriptHost

Namespace
Alternet.Scripter.IronPython
Assembly
Alternet.Scripter.IronPython.v9.dll

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

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

Constructors

IronPythonScriptHost(IScriptRun)

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

Properties

Engine
TextOutputCallback
TraceCallback

Methods

AddGlobalItemsToScope(ScriptScope)
ApplyTraceCallback(ScriptEngine, TracebackDelegate)
Compile()

Initializes script engine and compiles the script.

CreateEngine()
CreateReferenceResolver()
Dispose(bool)
GenerateExpressionCode(string)
GetExecutionScope()
GetFullPath(string)
GetInvocationExpression(string, string, object[])
GetModulesSearchPaths()
GetStartupScript()
InitializeEngine(ScriptEngine)
Reset()

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

ResolveInterpereterReferences()
ResolveReferences(IList<string>)

When implemented by a class, returns list of assembly references used by the script.

RunCore()
RunCoreAsync(CancellationToken)
RunFunctionCore(string, object[])
RunFunctionCoreAsync(string, object[], CancellationToken)
RunProcessCore(IScriptRun, string, object[], bool)

Executes script starting from the main entry point in standalone process.

RunStartupScript(ScriptScope)
SetTextOutputCallback(ScriptEngine)