C# Class Subtext.Web.Global

Inheritance: System.Web.HttpApplication
Mostrar archivo Open project: ayende/Subtext

Public Methods

Method Description
GetVaryByCustomString ( HttpContext context, string custom ) : string

This is used to vary partial caching of ASCX controls and ASPX pages on a per blog basis. You can see this in action via the [PartialCaching] attribute.

Provides an application-wide implementation of the P:System.Web.UI.PartialCachingAttribute.VaryByCustom property.

Protected Methods

Method Description
Application_AuthenticateRequest ( Object sender, EventArgs e ) : void

Handles the AuthenticateRequest event of the Application control.

Application_BeginRequest ( Object sender, EventArgs e ) : void

Method called during at the beginning of each request.

Application_End ( Object sender, EventArgs e ) : void

Handles the End event of the Application control.

Application_EndRequest ( Object sender, EventArgs e ) : void

Handles the EndRequest event of the Application control.

Application_Error ( Object sender, EventArgs e ) : void

Handles the Error event of the Application control.

Application_Start ( Object sender, EventArgs e ) : void

Method called by the application on startup.

Session_End ( Object sender, EventArgs e ) : void

Handles the End event of the Session control.

Session_Start ( Object sender, EventArgs e ) : void

Method called when a session starts.

Private Methods

Method Description
Global ( ) : System
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Method Details

Application_AuthenticateRequest() protected method

Handles the AuthenticateRequest event of the Application control.
protected Application_AuthenticateRequest ( Object sender, EventArgs e ) : void
sender Object The source of the event.
e System.EventArgs The instance containing the event data.
return void

Application_BeginRequest() protected method

Method called during at the beginning of each request.
protected Application_BeginRequest ( Object sender, EventArgs e ) : void
sender Object
e System.EventArgs
return void

Application_End() protected method

Handles the End event of the Application control.
protected Application_End ( Object sender, EventArgs e ) : void
sender Object The source of the event.
e System.EventArgs The instance containing the event data.
return void

Application_EndRequest() protected method

Handles the EndRequest event of the Application control.
protected Application_EndRequest ( Object sender, EventArgs e ) : void
sender Object The source of the event.
e System.EventArgs The instance containing the event data.
return void

Application_Error() protected method

Handles the Error event of the Application control.
protected Application_Error ( Object sender, EventArgs e ) : void
sender Object The source of the event.
e System.EventArgs The instance containing the event data.
return void

Application_Start() protected method

Method called by the application on startup.
protected Application_Start ( Object sender, EventArgs e ) : void
sender Object
e System.EventArgs
return void

GetVaryByCustomString() public method

This is used to vary partial caching of ASCX controls and ASPX pages on a per blog basis. You can see this in action via the [PartialCaching] attribute.

Provides an application-wide implementation of the P:System.Web.UI.PartialCachingAttribute.VaryByCustom property.

public GetVaryByCustomString ( HttpContext context, string custom ) : string
context System.Web.HttpContext An that contains information about the current Web request
custom string
return string

Session_End() protected method

Handles the End event of the Session control.
protected Session_End ( Object sender, EventArgs e ) : void
sender Object The source of the event.
e System.EventArgs The instance containing the event data.
return void

Session_Start() protected method

Method called when a session starts.
protected Session_Start ( Object sender, EventArgs e ) : void
sender Object
e System.EventArgs
return void