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); 278return new HttpConnectionKey(HttpConnectionKind.ProxyTunnel, uri.IdnHost, uri.Port, null, proxyUri, identity); 285return new HttpConnectionKey(HttpConnectionKind.Proxy, null, 0, null, proxyUri, identity); 291return new HttpConnectionKey(HttpConnectionKind.SslProxyTunnel, uri.IdnHost, uri.Port, sslHostName, proxyUri, identity); 296return new HttpConnectionKey(HttpConnectionKind.Https, uri.IdnHost, uri.Port, sslHostName, null, identity); 300return 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) 307private static string? GetTelemetryServerAddress(HttpRequestMessage request, HttpConnectionKey key) 334HttpConnectionKey key = GetConnectionKey(request, proxyUri, isProxyConnect); 455foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> pool in _pools) 484foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> entry in _pools) 511foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> pool in _pools) 522internal readonly struct HttpConnectionKey : IEquatable<HttpConnectionKey> 548obj is HttpConnectionKey hck && 551public bool Equals(HttpConnectionKey other) =>