
HttpApplication | 485
System.Web
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
HttpApplication
System.Web (system.web.dll)
disposable
class
HttpApplication is the default base class from which your web application derives. This
class is most notable for the application-level events it provides. You can code event
handlers that react to global application events in the global.asax file. If you use Visual
Studio .NET to create a code-behind class (like global.asax.vb), the event handler code
will be created in a class called Global, which inherits from HttpApplication.
The first time a user navigates to a page in your application, the ASP.NET engine
creates a pool of HttpApplication objects. Whenever your application receives a request,
the ASP.NET engine automatically assigns one of these HttpApplication instances to serve
the request. This HttpApplication instance will be reused, but only once the request is
complete.
public class HttpApplication : IHttpAsyncHandler, IHttpHandler, System.ComponentModel.IComponent, IDisposable {
// Public Constructors
public HttpApplication();
// Public Instance Properties
public HttpApplicationState Application{get; }
public HttpContext Context{get; }
public HttpModuleCollection Modules{get; }
public HttpRequest Request{get; }
public HttpResponse Response{get; }
public HttpServerUtility ...