C# Класс 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.
Наследование: System.Object
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
InitializeLifetimeService ( ) : object
ScriptHost ( ) : System

Защищенные методы

Метод Описание
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.).

Приватные методы

Метод Описание
SetRuntime ( ScriptRuntime runtime ) : void

Описание методов

EngineCreated() защищенный Метод

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
Результат void

InitializeLifetimeService() публичный Метод

public InitializeLifetimeService ( ) : object
Результат object

RuntimeAttached() защищенный Метод

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
Результат void

ScriptHost() публичный Метод

public ScriptHost ( ) : System
Результат System