public void EndHttpRequest (HttpContext context) { ManualResetEvent wait; if (!wcf_wait_handles.TryGetValue (context, out wait)) return; wcf_wait_handles.Remove (context); if (wait != null) wait.Set (); }