请问Windows Azure的支持应用程序热身模块或类似的东西? [英] Does Windows Azure support the Application Warm-Up module or something similar?

查看:107
本文介绍了请问Windows Azure的支持应用程序热身模块或类似的东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有我们的托管使用旧基于ASMX Web引用联系外部系统Web角色在Windows Azure中。 Web引用代理code是足够大,实例化第一次有显著的成本。

We have a Web Role that we are hosting in Windows Azure that uses an old ASMX based Web Reference to contact an external system. The Web Reference proxy code is big enough that instantiating it the first time has a significant cost.

我们希望能够有此运行时的Web角色开始,而不是在第一次请求。

We'd like to be able to have this run when the Web Role starts instead of on the first request.

我知道IIS 7.5有一个应用热身模块,将使我们能够做到这一点,但我遇到问题搞清楚,如果与托管在Windows Azure上存在类似的东西。

I know IIS 7.5 has an Application Warm-Up module that would allow us to achieve this, but I'm having trouble figuring out if something similar exists with hosting on Windows Azure.

谢谢,
科瑞

推荐答案

它看起来像在Global.asax中的Application_Start处理程序当Web角色部署(ASP.NET的),而不是在第一次请求被执行,从而使会为我们工作。

It looks like the Application_Start handler in Global.asax gets executed when the Web Role is deployed (for ASP.NET) and not on the first request, so that will work for us.

这篇关于请问Windows Azure的支持应用程序热身模块或类似的东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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