8 instantiations of HttpConnectionKey
System.Net.Http (8)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (8)
264return new HttpConnectionKey(HttpConnectionKind.ProxyConnect, uri.IdnHost, uri.Port, null, proxyUri, GetIdentityIfDefaultCredentialsUsed(_settings._defaultCredentialsUsedForProxy)); 292return new HttpConnectionKey(HttpConnectionKind.SslSocksTunnel, uri.IdnHost, uri.Port, sslHostName, proxyUri, identity); 296return new HttpConnectionKey(HttpConnectionKind.SocksTunnel, uri.IdnHost, uri.Port, null, proxyUri, identity); 304return new HttpConnectionKey(HttpConnectionKind.ProxyTunnel, uri.IdnHost, uri.Port, null, proxyUri, identity); 311return new HttpConnectionKey(HttpConnectionKind.Proxy, null, 0, null, proxyUri, identity); 317return new HttpConnectionKey(HttpConnectionKind.SslProxyTunnel, uri.IdnHost, uri.Port, sslHostName, proxyUri, identity); 322return new HttpConnectionKey(HttpConnectionKind.Https, uri.IdnHost, uri.Port, sslHostName, null, identity); 326return new HttpConnectionKey(HttpConnectionKind.Http, uri.IdnHost, uri.Port, null, null, identity);
12 references to HttpConnectionKey
System.Net.Http (12)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (12)
37private readonly ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool> _pools; 63_pools = new ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>(); 155var poolsRef = new WeakReference<ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>>(_pools); 158if (poolsRef.TryGetTarget(out ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>? pools)) 256private HttpConnectionKey GetConnectionKey(HttpRequestMessage request, Uri? proxyUri, bool isProxyConnect) 332HttpConnectionKey key = GetConnectionKey(request, proxyUri, isProxyConnect); 453foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> pool in _pools) 482foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> entry in _pools) 509foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> pool in _pools) 520internal readonly struct HttpConnectionKey : IEquatable<HttpConnectionKey> 546obj is HttpConnectionKey hck && 549public bool Equals(HttpConnectionKey other) =>