什么是“IIS 模拟 HTTP 请求”?
有谁知道我在哪里可以找到有关 System.Web.Hosting.IProcessHostPreloadClient?
我正在尝试执行“通常的”ASP.NET 站点预热操作,以确保应用程序池回收后的快速响应时间,类似于 如何在 IIS 7.5 上预热 ASP.NET MVC 应用程序?
我正在使用:
- Windows Server 2008 R2
- IIS 7.5
- .NET 4.0
- ASP.NET MVC 3
IProcessHostPreloadClient 文档中的注释(参见上面的链接)明确指出:
此接口主要供 WCF 应用程序使用 是非 HTTP 应用程序。想要预加载的 ASP.NET 开发人员 ASP.NET Web 应用程序应使用 IIS 中的模拟 HTTP 请求 7.0...
请注意,这个问题与 IProcessHostPreloadClient 无关,我已成功实现并启动了 HttpWebRequest 来预热我的网站;它本质上与类似的问题相同,而该问题又具有其他几个重复项/在网络上转发,但从未得到真正的答复。
其他(明显的)红鲱鱼:
- IIS“应用程序预热模块”(http://forums.iis .net/t/1176740.aspx),它不再可用,并且似乎是一个插件而不是核心功能。
- aspnet_compiler,它不会触发Application_Start。
任何帮助将不胜感激。
Does anybody know where I can find details about the IIS simulated HTTP requests feature identified at System.Web.Hosting.IProcessHostPreloadClient ?
I'm trying to do the "usual" ASP.NET site warmup thing to ensure speedy response times after an application pool recycle, similar to How to warm up an ASP.NET MVC application on IIS 7.5?
I'm using:
- Windows Server 2008 R2
- IIS 7.5
- .NET 4.0
- ASP.NET MVC 3
The remarks in the IProcessHostPreloadClient docs (see above link) explictly state:
This interface is intended primarily for use by WCF applications that
are non-HTTP applications. ASP.NET developers who want to preload
ASP.NET Web applications should use the simulated HTTP requests in IIS
7.0...
Please note that this question is not about IProcessHostPreloadClient, which I have successfully implemented and launched an HttpWebRequest to warmup my site; it is essentially the same as a similar question, which in turn has several other duplicates/reposts across the web but was never actually answered.
Other (apparent) red herrings:
- An IIS "Application Warmup module" (http://forums.iis.net/t/1176740.aspx), which is no longer available and seems to have been a plugin rather than a core feature.
- aspnet_compiler, which doesn't trigger Application_Start.
Any assistance would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不能声称我完全理解它的含义,但根据它的声音和基于这篇文章 - http://gunnarpeipman.com/2010/01/asp-net-4-0-how-to-use-application-warm-up-class/
在
IProcessHostPreloadClient
您没有任何 HTTP 上下文,因此您无法执行与 HTTP 相关的任何操作。基本上你只能靠自己了。 WCF 可以与 HTTP 以外的协议一起使用,因此 MSDN 可能会说该接口主要用于 WCF。I cannot claim I completely understand what it means, but by the sounds of it and based on this article - http://gunnarpeipman.com/2010/01/asp-net-4-0-how-to-use-application-warm-up-class/
In
IProcessHostPreloadClient
you do not have any HTTP context so you cannot do anything related to HTTP. You are on your own basically. WCF can work with protocols other than HTTP and hence the MSDN might be saying that this interface is primarily meant for WCF.