EPiWiki.se  - EPiServer notes shared with others
 

Events in Global.asax

[Edit]

The events that can be accessed in the file Golbal.asax


BeginRequest
AuthenticateRequest
PostAuthenticateRequest
AuthorizeRequest
PostAuthorizeRequest
ResolveRequestCache - Only called when the output cache has to be updated
PostResolveRequestCache
PostMapRequestHandler
AcquireRequestState
Global.asax Session_OnStart
PostAcquireRequestState
PreRequestHandlerExecute
(The page code is executed)
PostRequestHandlerExecute
ReleaseRequestState
PostReleaseRequestState
UpdateRequestCache
PostUpdateRequestCache
EndRequest

Global.asax



protected void Application_BeginRequest(object sender, EventArgs e)
{
  log4net.LogManager.GetLogger("").Info("Application_BeginRequest");
}
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
  log4net.LogManager.GetLogger("").Info("Application_AuthenticateRequest");
}
protected void Application_AuthorizeRequest(object sender, EventArgs e)
{
  log4net.LogManager.GetLogger("").Info("Application_AuthorizeRequest");
}
protected void Application_ResolveRequestCache(object sender, EventArgs e)
{
  log4net.LogManager.GetLogger("").Info("Application_ResolveRequestCache");
}
protected void Application_AcquireRequestState(object sender, EventArgs e)
{
  log4net.LogManager.GetLogger("").Info("Application_AcquireRequestState");
}
protected void Application_PreRequestHandlerExecute(object sender, EventArgs e)
{
  log4net.LogManager.GetLogger("").Info("Application_PreRequestHandlerExecute");
}
protected void Application_PostRequestHandlerExecute(object sender, EventArgs e)
{
  log4net.LogManager.GetLogger("").Info("Application_PostRequestHandlerExecute");
}
protected void Application_ReleaseRequestState(object sender, EventArgs e)
{
  log4net.LogManager.GetLogger("").Info("Application_ReleaseRequestState");
}
protected void Application_UpdateRequestCache(object sender, EventArgs e)
{
  log4net.LogManager.GetLogger("").Info("Application_UpdateRequestCache");
}
protected void Application_EndRequest(object sender, EventArgs e)
{
  log4net.LogManager.GetLogger("").Info("Application_EndRequest");
}
Version author:
Mattias Lövström

EPiServer version

All