
524
|
Chapter 26: The System.Web.Hosting Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
ApplicationHost
System.Web.Hosting (system.web.dll)
sealed class
This class exposes a single shared CreateApplicationHost( ) method, which allows you to
create an application domain that will be used to process ASP.NET requests. This
method accepts three parameters: the
hostType (your request-handling class, which will
be created in the new domain),
virtualDir (the virtual directory for the application
domain, such as “/MyApp”), and
physicalDir (the physical directory for the application
domain where the ASP.NET pages are located, such as “c:\MyApp”). The
CreateApplicationHost( ) method returns the live instance of the hostType class.
IAppDomainFactory
System.Web.Hosting (system.web.dll)
interface
This interface supports the .NET Framework infrastructure. You do not need to use it
directly in your code.
Implemented By
AppDomainFactory
IISAPIRuntime
System.Web.Hosting (system.web.dll)
interface
This interface supports the .NET Framework infrastructure. You do not need to use it
directly in your code.
Implemented By
ISAPIRuntime
// Public Instance Methods
public object Create(string module, string typeName, string appID, string appPath,
string strUrlOfAppOrigin, int iZone); // implements IAppDomainFactory
}
public sealed class ApplicationHost {
// Public ...