1 instantiation of QueueItem
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectionPool\RequestQueue.cs (1)
124Enqueue(new QueueItem { Request = request, Waiter = waiter });
17 references to QueueItem
System.Net.Http (17)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (2)
245RequestQueue<HttpConnection>.QueueItem queueItem = _http11RequestQueue.PeekNextRequestForConnectionAttempt(); 250private async Task InjectNewHttp11ConnectionAsync(RequestQueue<HttpConnection>.QueueItem queueItem)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (2)
167RequestQueue<Http2Connection?>.QueueItem queueItem = _http2RequestQueue.PeekNextRequestForConnectionAttempt(); 172private async Task InjectNewHttp2ConnectionAsync(RequestQueue<Http2Connection?>.QueueItem queueItem)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (2)
233RequestQueue<Http3Connection?>.QueueItem queueItem = _http3RequestQueue.PeekNextRequestForConnectionAttempt(); 241private async Task InjectNewHttp3ConnectionAsync(RequestQueue<Http3Connection?>.QueueItem queueItem)
System\Net\Http\SocketsHttpHandler\ConnectionPool\RequestQueue.cs (11)
20private QueueItem[] _array; 28_array = Array.Empty<QueueItem>(); 35private void Enqueue(QueueItem queueItem) 48private QueueItem Dequeue() 53QueueItem[] array = _array; 55QueueItem queueItem = array[head]; 69private bool TryPeek(out QueueItem queueItem) 93var newArray = new QueueItem[Math.Max(4, _array.Length * 2)]; 129while (TryPeek(out QueueItem queueItem) && queueItem.Waiter.Task.IsCompleted) 158if (TryPeek(out QueueItem queueItem) && queueItem.Waiter == waiter) 164public QueueItem PeekNextRequestForConnectionAttempt()