Asp.net HttpModule和HttpHandler之间的交互
在我们的asp.net 2.0应用程序中,我们使用httpmodule和httphandler通过cookie计算一些指标。要计算网络传输时间,httpmodule:EndRequest将Transferstart存储在cookie中,httphandler:Processrequest使用datetime.now减去Transferstart以确定总网络时间。这是正确的吗?我也不清楚请求流程。是这样的吗 请求>HttpModule::OnStart>HttpModule::OnEnd>HttpHandler::ProcessRequest?顺序是:Asp.net HttpModule和HttpHandler之间的交互,asp.net,httphandler,httpmodule,Asp.net,Httphandler,Httpmodule,在我们的asp.net 2.0应用程序中,我们使用httpmodule和httphandler通过cookie计算一些指标。要计算网络传输时间,httpmodule:EndRequest将Transferstart存储在cookie中,httphandler:Processrequest使用datetime.now减去Transferstart以确定总网络时间。这是正确的吗?我也不清楚请求流程。是这样的吗 请求>HttpModule::OnStart>HttpModule::OnEnd>Http
- 模块启动
- 处理程序进程请求
- 模块ONED
HttpContext.Items
属性在处理程序和模块之间共享信息,而不是使用cookie