Well - exactly as the question subject states - any ideas on how you might do this?
I\'ve been looking over the objects in System.Web.Hosting but nothing is standing
You can check the value of System.Web.Hosting.HostingEnvironment.ShutdownReason, when the app pool is not in the process of closing / recycling it will have the ShutdownReason of None.