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

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

问题描述

有谁知道某个站点或页面,或者知道 HTTPModule 事件执行的 HTTPApplication 类的事件的执行顺序吗?

我找到了 MSDN 文档事件,但它没有显示流程步骤列表,我也找不到.

解决方案

也许这有帮助

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

<块引用>

HttpApplication 类提供了许多模块可以与之同步的事件.以下事件可用于模块同步每个请求.这些事件按顺序列出:

  1. 开始请求
  2. 验证请求
  3. 授权请求
  4. 解析请求缓存
  5. 获取请求状态
  6. PreRequestHandlerExecute
  7. PostRequestHandlerExecute
  8. 发布请求状态
  9. 更新请求缓存
  10. 结束请求

<块引用>

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

  • 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天全站免登陆