1 instantiation of HttpConnectionPool
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
337
pool = new
HttpConnectionPool
(this, key.Kind, key.Host, key.Port, key.SslHostName, key.ProxyUri);
41 references to HttpConnectionPool
System.Net.Http (41)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (4)
206
private static ValueTask<HttpResponseMessage> InnerSendAsync(HttpRequestMessage request, bool async, bool isProxyAuth, bool doRequestAuth,
HttpConnectionPool
pool, CancellationToken cancellationToken)
213
private static async ValueTask<HttpResponseMessage> SendWithAuthAsync(HttpRequestMessage request, Uri authUri, bool async, ICredentials credentials, bool preAuthenticate, bool isProxyAuth, bool doRequestAuth,
HttpConnectionPool
pool, CancellationToken cancellationToken)
348
public static ValueTask<HttpResponseMessage> SendWithProxyAuthAsync(HttpRequestMessage request, Uri proxyUri, bool async, ICredentials proxyCredentials, bool doRequestAuth,
HttpConnectionPool
pool, CancellationToken cancellationToken)
353
public static ValueTask<HttpResponseMessage> SendWithRequestAuthAsync(HttpRequestMessage request, bool async, ICredentials credentials, bool preAuthenticate,
HttpConnectionPool
pool, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (4)
51
private static Task<HttpResponseMessage> InnerSendAsync(HttpRequestMessage request, bool async, bool isProxyAuth,
HttpConnectionPool
pool, HttpConnection connection, CancellationToken cancellationToken)
76
private static async Task<HttpResponseMessage> SendWithNtAuthAsync(HttpRequestMessage request, Uri authUri, bool async, ICredentials credentials, TokenImpersonationLevel impersonationLevel, bool isProxyAuth, HttpConnection connection,
HttpConnectionPool
connectionPool, CancellationToken cancellationToken)
235
public static Task<HttpResponseMessage> SendWithNtProxyAuthAsync(HttpRequestMessage request, Uri proxyUri, bool async, ICredentials proxyCredentials, TokenImpersonationLevel impersonationLevel, HttpConnection connection,
HttpConnectionPool
connectionPool, CancellationToken cancellationToken)
240
public static Task<HttpResponseMessage> SendWithNtConnectionAuthAsync(HttpRequestMessage request, bool async, ICredentials credentials, TokenImpersonationLevel impersonationLevel, HttpConnection connection,
HttpConnectionPool
connectionPool, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (2)
40
/// <summary>The origin authority used to construct the <see cref="
HttpConnectionPool
"/>.</summary>
1020
$"{nameof(
HttpConnectionPool
)} " +
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (1)
426
private static void ScavengeHttp11ConnectionStack(
HttpConnectionPool
pool, ConcurrentStack<HttpConnection> connections, ref List<HttpConnectionBase>? toDispose, long nowTicks, TimeSpan pooledConnectionLifetime, TimeSpan pooledConnectionIdleTimeout)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (3)
719
var thisRef = new WeakReference<
HttpConnectionPool
>(this);
725
var wr = (WeakReference<
HttpConnectionPool
>)o!;
726
if (wr.TryGetTarget(out
HttpConnectionPool
? @this))
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (3)
20
public ValueTask<T> WaitForConnectionAsync(HttpRequestMessage request,
HttpConnectionPool
pool, bool async, CancellationToken requestCancellationToken)
27
private async ValueTask<T> WaitForConnectionWithTelemetryAsync(HttpRequestMessage request,
HttpConnectionPool
pool, bool async, CancellationToken requestCancellationToken)
78
public void CancelIfNecessary(
HttpConnectionPool
pool, bool requestCancelled)
System\Net\Http\SocketsHttpHandler\ConnectionPool\RequestQueue.cs (2)
127
public void PruneCompletedRequestsFromHeadOfQueue(
HttpConnectionPool
pool)
142
public bool TryDequeueWaiter(
HttpConnectionPool
pool, [MaybeNullWhen(false)] out HttpConnectionWaiter<T> waiter)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
133
public Http2Connection(
HttpConnectionPool
pool, Stream stream, Activity? connectionSetupActivity, IPEndPoint? remoteEndPoint)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (4)
50
public
HttpConnectionPool
Pool => _pool;
71
public Http3Connection(
HttpConnectionPool
pool, HttpAuthority authority, bool includeAltUsedHeader)
78
bool altUsedDefaultPort = pool.Kind == HttpConnectionKind.Http && authority.Port ==
HttpConnectionPool
.DefaultHttpPort || pool.Kind == HttpConnectionKind.Https && authority.Port ==
HttpConnectionPool
.DefaultHttpsPort;
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
73
HttpConnectionPool
pool,
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (4)
20
protected readonly
HttpConnectionPool
_pool;
43
public HttpConnectionBase(
HttpConnectionPool
pool)
50
public HttpConnectionBase(
HttpConnectionPool
pool, Activity? connectionSetupActivity, IPEndPoint? remoteEndPoint)
218
/// Called by <see cref="
HttpConnectionPool
.CleanCacheAndDisposeIfUnused"/> while holding the lock.
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (11)
37
private readonly ConcurrentDictionary<HttpConnectionKey,
HttpConnectionPool
> _pools;
63
_pools = new ConcurrentDictionary<HttpConnectionKey,
HttpConnectionPool
>();
141
/// Starts monitoring for network changes. Upon a change, <see cref="
HttpConnectionPool
.OnNetworkChanged"/> will be
142
/// called for every <see cref="
HttpConnectionPool
"/> in the <see cref="HttpConnectionPoolManager"/>.
155
var poolsRef = new WeakReference<ConcurrentDictionary<HttpConnectionKey,
HttpConnectionPool
>>(_pools);
158
if (poolsRef.TryGetTarget(out ConcurrentDictionary<HttpConnectionKey,
HttpConnectionPool
>? pools))
160
foreach (
HttpConnectionPool
pool in pools.Values)
334
HttpConnectionPool
? pool;
453
foreach (KeyValuePair<HttpConnectionKey,
HttpConnectionPool
> pool in _pools)
482
foreach (KeyValuePair<HttpConnectionKey,
HttpConnectionPool
> entry in _pools)
509
foreach (KeyValuePair<HttpConnectionKey,
HttpConnectionPool
> pool in _pools)
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
32
public void RequestLeftQueue(HttpRequestMessage request,
HttpConnectionPool
pool, TimeSpan duration, int versionMajor)