1 instantiation of HttpConnectionPool
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
337pool = 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)
206private static ValueTask<HttpResponseMessage> InnerSendAsync(HttpRequestMessage request, bool async, bool isProxyAuth, bool doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) 213private static async ValueTask<HttpResponseMessage> SendWithAuthAsync(HttpRequestMessage request, Uri authUri, bool async, ICredentials credentials, bool preAuthenticate, bool isProxyAuth, bool doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) 348public static ValueTask<HttpResponseMessage> SendWithProxyAuthAsync(HttpRequestMessage request, Uri proxyUri, bool async, ICredentials proxyCredentials, bool doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) 353public static ValueTask<HttpResponseMessage> SendWithRequestAuthAsync(HttpRequestMessage request, bool async, ICredentials credentials, bool preAuthenticate, HttpConnectionPool pool, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (4)
51private static Task<HttpResponseMessage> InnerSendAsync(HttpRequestMessage request, bool async, bool isProxyAuth, HttpConnectionPool pool, HttpConnection connection, CancellationToken cancellationToken) 76private static async Task<HttpResponseMessage> SendWithNtAuthAsync(HttpRequestMessage request, Uri authUri, bool async, ICredentials credentials, TokenImpersonationLevel impersonationLevel, bool isProxyAuth, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken) 235public static Task<HttpResponseMessage> SendWithNtProxyAuthAsync(HttpRequestMessage request, Uri proxyUri, bool async, ICredentials proxyCredentials, TokenImpersonationLevel impersonationLevel, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken) 240public 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)
426private 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)
719var thisRef = new WeakReference<HttpConnectionPool>(this); 725var wr = (WeakReference<HttpConnectionPool>)o!; 726if (wr.TryGetTarget(out HttpConnectionPool? @this))
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (3)
20public ValueTask<T> WaitForConnectionAsync(HttpRequestMessage request, HttpConnectionPool pool, bool async, CancellationToken requestCancellationToken) 27private async ValueTask<T> WaitForConnectionWithTelemetryAsync(HttpRequestMessage request, HttpConnectionPool pool, bool async, CancellationToken requestCancellationToken) 78public void CancelIfNecessary(HttpConnectionPool pool, bool requestCancelled)
System\Net\Http\SocketsHttpHandler\ConnectionPool\RequestQueue.cs (2)
127public void PruneCompletedRequestsFromHeadOfQueue(HttpConnectionPool pool) 142public bool TryDequeueWaiter(HttpConnectionPool pool, [MaybeNullWhen(false)] out HttpConnectionWaiter<T> waiter)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
133public Http2Connection(HttpConnectionPool pool, Stream stream, Activity? connectionSetupActivity, IPEndPoint? remoteEndPoint)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (4)
50public HttpConnectionPool Pool => _pool; 71public Http3Connection(HttpConnectionPool pool, HttpAuthority authority, bool includeAltUsedHeader) 78bool altUsedDefaultPort = pool.Kind == HttpConnectionKind.Http && authority.Port == HttpConnectionPool.DefaultHttpPort || pool.Kind == HttpConnectionKind.Https && authority.Port == HttpConnectionPool.DefaultHttpsPort;
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
73HttpConnectionPool pool,
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (4)
20protected readonly HttpConnectionPool _pool; 43public HttpConnectionBase(HttpConnectionPool pool) 50public 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)
37private 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"/>. 155var poolsRef = new WeakReference<ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>>(_pools); 158if (poolsRef.TryGetTarget(out ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>? pools)) 160foreach (HttpConnectionPool pool in pools.Values) 334HttpConnectionPool? pool; 453foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> pool in _pools) 482foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> entry in _pools) 509foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> pool in _pools)
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
32public void RequestLeftQueue(HttpRequestMessage request, HttpConnectionPool pool, TimeSpan duration, int versionMajor)