1 write to _availableHttp2Connections
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
429
_availableHttp2Connections
??= new List<Http2Connection>();
31 references to _availableHttp2Connections
System.Net.Http (31)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (9)
924
if (
_availableHttp2Connections
is not null)
926
toDispose = [..
_availableHttp2Connections
];
927
_associatedHttp2ConnectionCount -=
_availableHttp2Connections
.Count;
928
_availableHttp2Connections
.Clear();
952
Debug.Assert((
_availableHttp2Connections
?.Count ?? 0) == 0, $"Expected {nameof(
_availableHttp2Connections
)}.{nameof(
_availableHttp2Connections
.Count)} == 0");
999
if (
_availableHttp2Connections
is not null)
1001
int removed = ScavengeHttp2ConnectionList(
_availableHttp2Connections
, ref toDispose, nowTicks, pooledConnectionLifetime, pooledConnectionIdleTimeout);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (22)
80
int availableConnectionCount =
_availableHttp2Connections
?.Count ?? 0;
85
connection =
_availableHttp2Connections
![availableConnectionCount - 1];
116
int index =
_availableHttp2Connections
.IndexOf(connection);
120
_availableHttp2Connections
.RemoveAt(index);
145
int availableHttp2ConnectionCount =
_availableHttp2Connections
?.Count ?? 0;
374
Debug.Assert(
_availableHttp2Connections
is null || !
_availableHttp2Connections
.Contains(connection));
375
Debug.Assert(_associatedHttp2ConnectionCount > (
_availableHttp2Connections
?.Count ?? 0));
393
Debug.Assert(
_availableHttp2Connections
is null || !
_availableHttp2Connections
.Contains(connection), $"HTTP2 connection already in available list");
394
Debug.Assert(_associatedHttp2ConnectionCount > (
_availableHttp2Connections
?.Count ?? 0),
395
$"Expected _associatedHttp2ConnectionCount={_associatedHttp2ConnectionCount} > _availableHttp2Connections.Count={(
_availableHttp2Connections
?.Count ?? 0)}");
417
Debug.Assert((
_availableHttp2Connections
?.Count ?? 0) == 0, $"With {(
_availableHttp2Connections
?.Count ?? 0)} available HTTP2 connections, we shouldn't have a waiter.");
430
_availableHttp2Connections
.Add(connection);
518
Debug.Assert(
_availableHttp2Connections
is null || !
_availableHttp2Connections
.Contains(connection));
542
if (
_availableHttp2Connections
is not null)
544
Debug.Assert(_associatedHttp2ConnectionCount >=
_availableHttp2Connections
.Count);
546
int index =
_availableHttp2Connections
.IndexOf(connection);
550
_availableHttp2Connections
.RemoveAt(index);
571
localHttp2Connections =
_availableHttp2Connections
?.ToArray();