static private FinishUnavailable ( HttpWorkerRequest wr ) : void | ||
wr | HttpWorkerRequest | |
return | void |
void Queue(HttpWorkerRequest wr) { if (queue.Count < queueLimit) { queue.Enqueue(wr); requestsQueuedCounter.Increment(); return; } HttpRuntime.FinishUnavailable(wr); }
public void Dispose() { if (disposing) { return; } disposing = true; HttpWorkerRequest wr; while ((wr = GetNextRequest(null)) != null) { HttpRuntime.FinishUnavailable(wr); } queue = null; }