C# Class Composite.Core.WebClient.ApplicationLevelEventHandlers

ASP.NET Application level logic. This class primarily interact between Orckestra CMS and the ASP.NET Application. Most of the members on this class is not documented, except for those which developers may find useful to interact with.
ファイルを表示 Open project: Orckestra/C1-CMS

Public Methods

Method Description
ApplicationStartInitialize ( bool displayDebugInfo = false ) : void
Application_BeginRequest ( object sender, EventArgs e ) : void
Application_End ( object sender, EventArgs e ) : void
Application_EndRequest ( object sender, EventArgs e ) : void
Application_Error ( object sender, EventArgs e ) : void
Application_Start ( object sender, EventArgs e ) : void
GetVaryByCustomString ( HttpContext context, string custom ) : string
RegisterC1PageVaryByCustomStringProvider ( string providerId, string>.Func customStringBuilder ) : void

Register a function that provide a custom string to be part of a C1 Page cache key. You should register a function just once and during the application initialization. Your function will be called with the current HttpContext and should return either null or a string for the C1 Page request in relation to caching. An example situation where this can be used: You want to have full page caching, but you have C1 Page content being dependant on client settings, such as HTTP CLIENT. You should kep the 'spread in values' you return to a minimum - each unique string will create a new cache entry and consume memory.

Private Methods

Method Description
CurrentDomain_DomainUnload ( object sender, EventArgs e ) : void
InitializeServices ( ) : void
LogShutDownReason ( ) : void

Method Details

ApplicationStartInitialize() public static method

public static ApplicationStartInitialize ( bool displayDebugInfo = false ) : void
displayDebugInfo bool
return void

Application_BeginRequest() public static method

public static Application_BeginRequest ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Application_End() public static method

public static Application_End ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Application_EndRequest() public static method

public static Application_EndRequest ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Application_Error() public static method

public static Application_Error ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Application_Start() public static method

public static Application_Start ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

GetVaryByCustomString() public static method

public static GetVaryByCustomString ( HttpContext context, string custom ) : string
context System.Web.HttpContext
custom string
return string

RegisterC1PageVaryByCustomStringProvider() public static method

Register a function that provide a custom string to be part of a C1 Page cache key. You should register a function just once and during the application initialization. Your function will be called with the current HttpContext and should return either null or a string for the C1 Page request in relation to caching. An example situation where this can be used: You want to have full page caching, but you have C1 Page content being dependant on client settings, such as HTTP CLIENT. You should kep the 'spread in values' you return to a minimum - each unique string will create a new cache entry and consume memory.
public static RegisterC1PageVaryByCustomStringProvider ( string providerId, string>.Func customStringBuilder ) : void
providerId string A string unique for your function - used to ensure this is only registered once
customStringBuilder string>.Func Your function the can return a custom string
return void