Is there a way to "automatically deploy" ASP.NET applications after restarting IIS?

I have an ASP.NET application that uses the Fluorine FX background library. When the web application is initialized, it starts the socket server on a separate port to handle RTMP connections.

The problem is that when IIS restarts, the RTMP service does not start until the first HTTP request is made against one of the .aspx files in the application.

I read about the ASP.NET life cycle and how it relates to IIS, citing this article here:

http://msdn.microsoft.com/en-us/library/ms178473.aspx

It seems that the life cycle is all based on the assumption that it is initialized with the first HTTP request ...

Does anyone know if there is any hook that I get when IIS reboots, so I can force Fluorine and its RTMP server to be initialized?

+3
source share
1 answer

I believe that all your statements are true. The functionality you are looking for is best done in a Windows service.

Windows Windows Activation Service Windows (WAS) supports non-HTTP scripts such as simple TCP, named pipes, or MSMQ, but the key term is activation — there is always a trigger.

+2
source

Source: https://habr.com/ru/post/1706609/


All Articles