1 write to _availableHttp3Connections
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
425_availableHttp3Connections ??= new List<Http3Connection>();
27 references to _availableHttp3Connections
System.Net.Http (27)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (6)
907if (IsHttp3Supported() && _availableHttp3Connections is not null) 910toDispose.AddRange(_availableHttp3Connections); 911_associatedHttp3ConnectionCount -= _availableHttp3Connections.Count; 912_availableHttp3Connections.Clear(); 983if (IsHttp3Supported() && _availableHttp3Connections is not null) 985int removed = ScavengeHttp3ConnectionList(_availableHttp3Connections, ref toDispose, nowTicks, pooledConnectionLifetime, pooledConnectionIdleTimeout);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (21)
139int availableConnectionCount = _availableHttp3Connections?.Count ?? 0; 144connection = _availableHttp3Connections![availableConnectionCount - 1]; 177int index = _availableHttp3Connections.IndexOf(connection); 181_availableHttp3Connections.RemoveAt(index); 211int availableHttp3ConnectionCount = _availableHttp3Connections?.Count ?? 0; 369Debug.Assert(_availableHttp3Connections is null || !_availableHttp3Connections.Contains(connection)); 370Debug.Assert(_associatedHttp3ConnectionCount > (_availableHttp3Connections?.Count ?? 0)); 389Debug.Assert(_availableHttp3Connections is null || !_availableHttp3Connections.Contains(connection), $"HTTP3 connection already in available list"); 390Debug.Assert(_associatedHttp3ConnectionCount > (_availableHttp3Connections?.Count ?? 0), 391$"Expected _associatedHttp3ConnectionCount={_associatedHttp3ConnectionCount} > _availableHttp3Connections.Count={(_availableHttp3Connections?.Count ?? 0)}"); 413Debug.Assert((_availableHttp3Connections?.Count ?? 0) == 0, $"With {(_availableHttp3Connections?.Count ?? 0)} available HTTP3 connections, we shouldn't have a waiter."); 426_availableHttp3Connections.Add(connection); 503Debug.Assert(_availableHttp3Connections is null || !_availableHttp3Connections.Contains(connection)); 532if (_availableHttp3Connections is not null) 534Debug.Assert(_associatedHttp3ConnectionCount >= _availableHttp3Connections.Count); 536int index = _availableHttp3Connections.IndexOf(connection); 540_availableHttp3Connections.RemoveAt(index);