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
Afficher le fichier Open project: jschementi/iron Class Usage Examples

Méthodes publiques

Méthode Description
InitializeLifetimeService ( ) : object
ScriptHost ( ) : System

Méthodes protégées

Méthode 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

Méthode Description
SetRuntime ( ScriptRuntime runtime ) : void

Method Details

EngineCreated() protected méthode

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
Résultat void

InitializeLifetimeService() public méthode

public InitializeLifetimeService ( ) : object
Résultat object

RuntimeAttached() protected méthode

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
Résultat void

ScriptHost() public méthode

public ScriptHost ( ) : System
Résultat System