1 write to _availableHttp2Connections
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
430
_availableHttp2Connections
??= new List<Http2Connection>();
31 references to _availableHttp2Connections
System.Net.Http (31)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (9)
900
if (
_availableHttp2Connections
is not null)
902
toDispose = [..
_availableHttp2Connections
];
903
_associatedHttp2ConnectionCount -=
_availableHttp2Connections
.Count;
904
_availableHttp2Connections
.Clear();
928
Debug.Assert((
_availableHttp2Connections
?.Count ?? 0) == 0, $"Expected {nameof(
_availableHttp2Connections
)}.{nameof(
_availableHttp2Connections
.Count)} == 0");
975
if (
_availableHttp2Connections
is not null)
977
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;
375
Debug.Assert(
_availableHttp2Connections
is null || !
_availableHttp2Connections
.Contains(connection));
376
Debug.Assert(_associatedHttp2ConnectionCount > (
_availableHttp2Connections
?.Count ?? 0));
394
Debug.Assert(
_availableHttp2Connections
is null || !
_availableHttp2Connections
.Contains(connection), $"HTTP2 connection already in available list");
395
Debug.Assert(_associatedHttp2ConnectionCount > (
_availableHttp2Connections
?.Count ?? 0),
396
$"Expected _associatedHttp2ConnectionCount={_associatedHttp2ConnectionCount} > _availableHttp2Connections.Count={(
_availableHttp2Connections
?.Count ?? 0)}");
418
Debug.Assert((
_availableHttp2Connections
?.Count ?? 0) == 0, $"With {(
_availableHttp2Connections
?.Count ?? 0)} available HTTP2 connections, we shouldn't have a waiter.");
431
_availableHttp2Connections
.Add(connection);
519
Debug.Assert(
_availableHttp2Connections
is null || !
_availableHttp2Connections
.Contains(connection));
543
if (
_availableHttp2Connections
is not null)
545
Debug.Assert(_associatedHttp2ConnectionCount >=
_availableHttp2Connections
.Count);
547
int index =
_availableHttp2Connections
.IndexOf(connection);
551
_availableHttp2Connections
.RemoveAt(index);
572
localHttp2Connections =
_availableHttp2Connections
?.ToArray();