C# Class Microsoft.Scripting.Hosting.ScriptHost

ScriptHost is collocated with ScriptRuntime in the same app-domain. The host can implement a derived class to consume some notifications and/or customize operations like TryGetSourceUnit,ResolveSourceUnit, etc. The areguments to the the constructor of the derived class are specified in ScriptRuntimeSetup instance that enters ScriptRuntime initialization. If the host is remote with respect to DLR (i.e. also with respect to ScriptHost) and needs to access objects living in its app-domain it can pass MarshalByRefObject as an argument to its ScriptHost subclass constructor.
Inheritance: System.Object
Mostra file Open project: jschementi/iron Class Usage Examples

Public Methods

Method Description
InitializeLifetimeService ( ) : object
ScriptHost ( ) : System

Protected Methods

Method Description
EngineCreated ( ScriptEngine engine ) : void

Invoked after a new language is loaded into the Runtime. The host can override this method to perform additional initialization of language engines.

RuntimeAttached ( ) : void

Invoked after the initialization of the associated Runtime is finished. The host can override this method to perform additional initialization of runtime (like loading assemblies etc.).

Private Methods

Method Description
SetRuntime ( ScriptRuntime runtime ) : void

Method Details

EngineCreated() protected method

Invoked after a new language is loaded into the Runtime. The host can override this method to perform additional initialization of language engines.
protected EngineCreated ( ScriptEngine engine ) : void
engine ScriptEngine
return void

InitializeLifetimeService() public method

public InitializeLifetimeService ( ) : object
return object

RuntimeAttached() protected method

Invoked after the initialization of the associated Runtime is finished. The host can override this method to perform additional initialization of runtime (like loading assemblies etc.).
protected RuntimeAttached ( ) : void
return void

ScriptHost() public method

public ScriptHost ( ) : System
return System