private static void DisposeHandlerPrivate(HttpContext context) { try { context.FinishPipelineRequest(); IIS7WorkerRequest workerRequest = context.WorkerRequest as IIS7WorkerRequest; if (workerRequest != null) { workerRequest.Dispose(); } PerfCounters.DecrementCounter(AppPerfCounter.REQUESTS_EXECUTING); context.DisposePrincipal(); } finally { if (context != null) { context.Unroot(); } HttpRuntime.DecrementActivePipelineCount(); } }