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