1 write to _availableHttp3Connections
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
432_availableHttp3Connections ??= new List<Http3Connection>();
27 references to _availableHttp3Connections
System.Net.Http (27)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (6)
931if (IsHttp3Supported() && _availableHttp3Connections is not null) 934toDispose.AddRange(_availableHttp3Connections); 935_associatedHttp3ConnectionCount -= _availableHttp3Connections.Count; 936_availableHttp3Connections.Clear(); 1007if (IsHttp3Supported() && _availableHttp3Connections is not null) 1009int removed = ScavengeHttp3ConnectionList(_availableHttp3Connections, ref toDispose, nowTicks, pooledConnectionLifetime, pooledConnectionIdleTimeout);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (21)
147int availableConnectionCount = _availableHttp3Connections?.Count ?? 0; 152connection = _availableHttp3Connections![availableConnectionCount - 1]; 185int index = _availableHttp3Connections.IndexOf(connection); 189_availableHttp3Connections.RemoveAt(index); 219int availableHttp3ConnectionCount = _availableHttp3Connections?.Count ?? 0; 376Debug.Assert(_availableHttp3Connections is null || !_availableHttp3Connections.Contains(connection)); 377Debug.Assert(_associatedHttp3ConnectionCount > (_availableHttp3Connections?.Count ?? 0)); 396Debug.Assert(_availableHttp3Connections is null || !_availableHttp3Connections.Contains(connection), $"HTTP3 connection already in available list"); 397Debug.Assert(_associatedHttp3ConnectionCount > (_availableHttp3Connections?.Count ?? 0), 398$"Expected _associatedHttp3ConnectionCount={_associatedHttp3ConnectionCount} > _availableHttp3Connections.Count={(_availableHttp3Connections?.Count ?? 0)}"); 420Debug.Assert((_availableHttp3Connections?.Count ?? 0) == 0, $"With {(_availableHttp3Connections?.Count ?? 0)} available HTTP3 connections, we shouldn't have a waiter."); 433_availableHttp3Connections.Add(connection); 510Debug.Assert(_availableHttp3Connections is null || !_availableHttp3Connections.Contains(connection)); 539if (_availableHttp3Connections is not null) 541Debug.Assert(_associatedHttp3ConnectionCount >= _availableHttp3Connections.Count); 543int index = _availableHttp3Connections.IndexOf(connection); 547_availableHttp3Connections.RemoveAt(index);