的HttpModule事件执行顺序? [英] HTTPModule Event Execution Order?

查看:171
本文介绍了的HttpModule事件执行顺序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道一个网站或网页,或执行知道的HttpApplication类的事件顺序的HttpModule事件执行?

我发现所有事件的 MSDN文档,但它不显示的处理步骤的名单,我一直没能找到一个。


解决方案

也许这有助于

<一个href=\"http://support.microsoft.com/kb/307985/en-us/\">http://support.microsoft.com/kb/307985/en-us/


  

这是HttpApplication类提供了一些与该模块可以同步事件。以下事件可用于模块与每个请求同步。这些事件都按顺序列出:



  1. 的BeginRequest

  2. 的AuthenticateRequest

  3. 的AuthorizeRequest

  4. ResolveRequestCache

  5. 的AcquireRequestState

  6. preRequestHandlerExecute

  7. PostRequestHandlerExecute

  8. ReleaseRequestState

  9. 的UpdateRequestCache

  10. EndRequest


  

以下事件可用于模块为每个请求传输同步。这些事件的顺序是不确定的。



  • preSendRequestHeaders

  • preSendRequestContent

  • 错误

请参阅文章全信息。

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.

解决方案

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.

这篇关于的HttpModule事件执行顺序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆