9 instantiations of HttpConnectionKey
System.Net.Http (9)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (9)
256return new HttpConnectionKey(HttpConnectionKind.ProxyConnect, uri.IdnHost, uri.Port, null, proxyUri, GetIdentityIfDefaultCredentialsUsed(_settings._defaultCredentialsUsedForProxy)); 284return new HttpConnectionKey(HttpConnectionKind.SslSocksTunnel, uri.IdnHost, uri.Port, sslHostName, proxyUri, identity); 288return new HttpConnectionKey(HttpConnectionKind.SocksTunnel, uri.IdnHost, uri.Port, null, proxyUri, identity); 300return new HttpConnectionKey(HttpConnectionKind.ProxyTunnel, uri.IdnHost, uri.Port, null, proxyUri, identity); 307return new HttpConnectionKey(HttpConnectionKind.Proxy, null, 0, null, proxyUri, identity); 313return new HttpConnectionKey(HttpConnectionKind.SslProxyTunnel, uri.IdnHost, uri.Port, sslHostName, proxyUri, identity); 318return new HttpConnectionKey(HttpConnectionKind.Https, uri.IdnHost, uri.Port, sslHostName, null, identity); 322return new HttpConnectionKey(HttpConnectionKind.Http, uri.IdnHost, uri.Port, null, null, identity); 366key = new HttpConnectionKey(key.Kind, key.Host, key.Port, sslHostName: null, key.ProxyUri, key.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>(); 177var poolsRef = new WeakReference<ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>>(_pools); 180if (poolsRef.TryGetTarget(out ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>? pools)) 248private HttpConnectionKey GetConnectionKey(HttpRequestMessage request, Uri? proxyUri, bool isProxyConnect) 329private static string? GetTelemetryServerAddress(HttpRequestMessage request, HttpConnectionKey key) 356HttpConnectionKey key = GetConnectionKey(request, proxyUri, isProxyConnect); 497foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> pool in _pools) 524foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> entry in _pools) 554foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> pool in _pools) 567internal readonly struct HttpConnectionKey : IEquatable<HttpConnectionKey> 593obj is HttpConnectionKey hck && 596public bool Equals(HttpConnectionKey other) =>