igorokfree
New Member
I have some code that I want to force to run whenever my IIS app gets reloaded, stopped or any other event that would reset the state of some static properties in a business class.I've made the class implement IDisposable and I tried adding a class destructor, but neither run when I upload a new dll to the server. How can I, from inside this class, register a method to run before the application is unloaded?