Is there any good way to detect when the IIS Application pool resets and creates a new worker process?
I need to detect this event to disconnect a web socket connection. This is keeping the process from shutting down even after the 90 second time limit has elapsed at which time IIS normally kills the process.
I have tried using the application_end() method to do this but when the worker process has a WS connection this method does not seem to be called until the connection is broken.