Search code examples
asp.nethttpmodulehttpapplication

HTTPModule Event Execution Order?


Does anyone know of a site or page, or know the order of execution for the events of the HTTPApplication class for HTTPModule event execution?

I found the MSDN Documentation for all of the events, but it doesn't show a list of process steps and I haven't been able to find one.


Solution

  • Maybe this helps

    http://support.microsoft.com/kb/307985/en-us/

    An HttpApplication class provides a number of events with which modules can synchronize. The following events are available for modules to synchronize with on each request. These events are listed in sequential order:

    1. BeginRequest
    2. AuthenticateRequest
    3. AuthorizeRequest
    4. ResolveRequestCache
    5. AcquireRequestState
    6. PreRequestHandlerExecute
    7. PostRequestHandlerExecute
    8. ReleaseRequestState
    9. UpdateRequestCache
    10. EndRequest

    The following events are available for modules to synchronize with for each request transmission. The order of these events is non-deterministic.

    • PreSendRequestHeaders
    • PreSendRequestContent
    • Error

    See the article for full info.