FinishUnavailable() static private method

static private FinishUnavailable ( HttpWorkerRequest wr ) : void
wr HttpWorkerRequest
return void
Exemplo n.º 1
0
        void Queue(HttpWorkerRequest wr)
        {
            if (queue.Count < queueLimit)
            {
                queue.Enqueue(wr);
                requestsQueuedCounter.Increment();
                return;
            }

            HttpRuntime.FinishUnavailable(wr);
        }
Exemplo n.º 2
0
        public void Dispose()
        {
            if (disposing)
            {
                return;
            }

            disposing = true;
            HttpWorkerRequest wr;

            while ((wr = GetNextRequest(null)) != null)
            {
                HttpRuntime.FinishUnavailable(wr);
            }

            queue = null;
        }