views:

16

answers:

0

In an ISAPI Extention there is a way to programmatically flag an IIS AppPool as unhealthy, which means that it will be recycled on next access. (e.g. pecb->ServerSupportFunction(pecb->ConnID,HSE_REQ_REPORT_UNHEALTHY,UNHEALTHY,NULL,NULL);

Is there any way to do the same using a .Net HttpModule? There is a HttpRuntime.UnloadAppDomain(), but it's not quite the same...