How to "know" of iisreset on a webservice.
Posted
by Francisco Silva
on Stack Overflow
See other posts from Stack Overflow
or by Francisco Silva
Published on 2010-05-14T18:45:41Z
Indexed on
2010/05/14
18:54 UTC
Read the original article
Hit count: 292
iis
|webservice
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?
© Stack Overflow or respective owner