C# Class IronPython.Hosting.PythonService

Helper class for implementing the Python class. This is exposed as a service through PythonEngine and the helper class uses this service to get the correct remoting semantics.
Inheritance: System.MarshalByRefObject
显示文件 Open project: jschementi/iron

Public Methods

Method Description
CreateModule ( string name, string filename, string docString ) : ScriptScope
DispatchCommand ( System.Action command ) : void
GetBuiltins ( ) : ScriptScope
GetClr ( ) : ScriptScope
GetLocalCommandDispatcher ( ) : ObjectHandle

Returns an ObjectHandle to a delegate of type Action[Action] which calls the current command dispatcher.

GetModuleFilenames ( ) : string[]
GetSetCommandDispatcher ( ObjectHandle dispatcher ) : ObjectHandle
GetSystemState ( ) : ScriptScope
ImportModule ( ScriptEngine engine, string name ) : ScriptScope
PythonService ( IronPython.Runtime.PythonContext context, ScriptEngine engine ) : System

Private Methods

Method Description
InitializeLifetimeService ( ) : object

Method Details

CreateModule() public method

public CreateModule ( string name, string filename, string docString ) : ScriptScope
name string
filename string
docString string
return ScriptScope

DispatchCommand() public method

public DispatchCommand ( System.Action command ) : void
command System.Action
return void

GetBuiltins() public method

public GetBuiltins ( ) : ScriptScope
return ScriptScope

GetClr() public method

public GetClr ( ) : ScriptScope
return ScriptScope

GetLocalCommandDispatcher() public method

Returns an ObjectHandle to a delegate of type Action[Action] which calls the current command dispatcher.
public GetLocalCommandDispatcher ( ) : ObjectHandle
return System.Runtime.Remoting.ObjectHandle

GetModuleFilenames() public method

public GetModuleFilenames ( ) : string[]
return string[]

GetSetCommandDispatcher() public method

public GetSetCommandDispatcher ( ObjectHandle dispatcher ) : ObjectHandle
dispatcher System.Runtime.Remoting.ObjectHandle
return System.Runtime.Remoting.ObjectHandle

GetSystemState() public method

public GetSystemState ( ) : ScriptScope
return ScriptScope

ImportModule() public method

public ImportModule ( ScriptEngine engine, string name ) : ScriptScope
engine ScriptEngine
name string
return ScriptScope

PythonService() public method

public PythonService ( IronPython.Runtime.PythonContext context, ScriptEngine engine ) : System
context IronPython.Runtime.PythonContext
engine ScriptEngine
return System