This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Runtime Hosts
The runtime is typically started and managed by environments like ASP+, IE or the Windows Shell. These hosting environments run managed code on behalf of the user and take advantage of the application isolation features provided by application domains. In fact it is the host that determines where the application domain boundaries lie and in what application domain user code is run in. The NGWS runtime provides a set of classes and interfaces used by hosts to create and manage Application Domains.
There are five NGWS runtime hosts:
- ASP+ - ASP+ creates application domains to run user code. Application domains are created per application as defined by the web server.
- Internet Explorer - IE creates an application domain per site.
- Windows Shell EXE - Each application that is launched from the command line runs in a separate application domain.
- VBA - VBA runs the script code contained in an Office document in an application domain.
- WinForms Designer - The WinForms Designer places each form the user is building in a separate application domain. When the user edits the form and rebuilds, WinForms shuts down the old application domain, recompiles the code and runs it in a new application domain.