Table of Contents

Class PythonScriptHost

Namespace
Alternet.Scripter.Python
Assembly
Alternet.Scripter.Python.v9.dll

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

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

Constructors

PythonScriptHost(IScriptRun)

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

Properties

Engine
PostRunAction
PreRunAction
TextOutputCallback
TraceCallback

Methods

AddGlobalItemsToScope(ScriptScope)
AddSearchPathsToScope(ScriptScope)
Compile()

Initializes script engine and compiles the script.

CreateEngine()
CreateReferenceResolver()
GenerateExpressionCode(string)
GetExecutionScope()
GetFullPath(string)
GetInvocationExpression(string, string, object[])
GetModulesSearchPaths()
GetRunnableScript()
GetStartupScript()
InitializeEngine(ScriptEngine)
InterruptAllPythonThreads()
RequestInterruptMainThread()
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)