FinishUnavailable() static private method

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

            HttpRuntime.FinishUnavailable(wr);
        }
Example #2
0
        public void Dispose()
        {
            if (disposing)
            {
                return;
            }

            disposing = true;
            HttpWorkerRequest wr;

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

            queue = null;
        }