有没有办法“自动部署” IIS 重新启动后的 ASP.NET 应用程序?
我有一个使用 Fluorine FX 远程处理库的 ASP.NET 应用程序。 当 Web 应用程序初始化时,它会在单独的端口上启动套接字服务器来处理 RTMP 连接。
我们遇到的问题是,当 IIS 重新启动时,RTMP 服务将不会开始运行,直到针对应用程序中的其中一个 .aspx 文件发出第一个 HTTP 请求。
我一直在阅读有关 ASP.NET 生命周期以及它如何与 IIS 相关的内容,并引用本文:
http://msdn.microsoft.com/en-us/library/ms178473.aspx
似乎生命周期都是基于假设它是由第一个 HTTP 请求初始化的
......有人知道当 IIS 重新启动时是否有某种挂钩,以便我可以强制 Fluorine 及其 RTMP 服务器初始化?
I have an ASP.NET application that uses the Fluorine FX remoting library. When the web application initializes, it kicks off a socket server on a separate port for handling RTMP connections.
The problem we're having is that when IIS is restarted, the RTMP service won't start running until the first HTTP request is made against one of the .aspx files in the application.
I've been reading about the ASP.NET lifecycle and how it ties into IIS referencing this article here:
http://msdn.microsoft.com/en-us/library/ms178473.aspx
It seems like the lifecycle is all predicated on the assumption that it's initialized by the first HTTP request...
Does anyone know if there's some kind of hook I get for when IIS restarts so I can force an initialization of Fluorine and its RTMP server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信你所有的说法都是正确的。 您正在寻找的功能最好在 Windows 服务中完成。
Windows 2008 的 Windows 进程激活服务 (WAS) 支持非 HTTP 方案,例如普通 TCP、命名管道或 MSMQ,但关键术语是“激活” - 始终有一个触发器。
I believe all of your statements are correct. The functionality you're looking for is best done in a windows service.
Windows 2008's Windows Process Activation Service (WAS) supports non-HTTP scenarios such as plain TCP, named pipes, or MSMQ, but the key term is 'activation' - there's always a trigger.