How to "know" of iisreset on a webservice.
- by Francisco Silva
I have a webservice where I want to do something when a the application pool ends, so I thought I'd do:
Application_End()
{
// Some logic here
}
What happens is if I stop the application pool, this logic is executed.
On the other hand, if I just call iisreset, it is NOT.
So my question is: where should I put my code so that it is executed in both cases?