8 instantiations of HttpConnectionKey
System.Net.Http (8)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (8)
238return new HttpConnectionKey(HttpConnectionKind.ProxyConnect, uri.IdnHost, uri.Port, null, proxyUri, GetIdentityIfDefaultCredentialsUsed(_settings._defaultCredentialsUsedForProxy)); 266return new HttpConnectionKey(HttpConnectionKind.SslSocksTunnel, uri.IdnHost, uri.Port, sslHostName, proxyUri, identity); 270return new HttpConnectionKey(HttpConnectionKind.SocksTunnel, uri.IdnHost, uri.Port, null, proxyUri, identity); 282return new HttpConnectionKey(HttpConnectionKind.ProxyTunnel, uri.IdnHost, uri.Port, null, proxyUri, identity); 289return new HttpConnectionKey(HttpConnectionKind.Proxy, null, 0, null, proxyUri, identity); 295return new HttpConnectionKey(HttpConnectionKind.SslProxyTunnel, uri.IdnHost, uri.Port, sslHostName, proxyUri, identity); 300return new HttpConnectionKey(HttpConnectionKind.Https, uri.IdnHost, uri.Port, sslHostName, null, identity); 304return new HttpConnectionKey(HttpConnectionKind.Http, uri.IdnHost, uri.Port, null, null, identity);
13 references to HttpConnectionKey
System.Net.Http (13)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (13)
37private readonly ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool> _pools; 63_pools = new ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>(); 158var poolsRef = new WeakReference<ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>>(_pools); 161if (poolsRef.TryGetTarget(out ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>? pools)) 230private HttpConnectionKey GetConnectionKey(HttpRequestMessage request, Uri? proxyUri, bool isProxyConnect) 311private static string? GetTelemetryServerAddress(HttpRequestMessage request, HttpConnectionKey key) 338HttpConnectionKey key = GetConnectionKey(request, proxyUri, isProxyConnect); 459foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> pool in _pools) 488foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> entry in _pools) 515foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> pool in _pools) 526internal readonly struct HttpConnectionKey : IEquatable<HttpConnectionKey> 552obj is HttpConnectionKey hck && 555public bool Equals(HttpConnectionKey other) =>