9 instantiations of HttpConnectionKey
System.Net.Http (9)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (9)
260return new HttpConnectionKey(HttpConnectionKind.ProxyConnect, uri.IdnHost, uri.Port, null, proxyUri, GetIdentityIfDefaultCredentialsUsed(_settings._defaultCredentialsUsedForProxy)); 288return new HttpConnectionKey(HttpConnectionKind.SslSocksTunnel, uri.IdnHost, uri.Port, sslHostName, proxyUri, identity); 292return 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); 370key = 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; 65_pools = new ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>(); 180var poolsRef = new WeakReference<ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>>(_pools); 183if (poolsRef.TryGetTarget(out ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>? pools)) 252private HttpConnectionKey GetConnectionKey(HttpRequestMessage request, Uri? proxyUri, bool isProxyConnect) 333private static string? GetTelemetryServerAddress(HttpRequestMessage request, HttpConnectionKey key) 360HttpConnectionKey key = GetConnectionKey(request, proxyUri, isProxyConnect); 501foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> pool in _pools) 530foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> entry in _pools) 560foreach (KeyValuePair<HttpConnectionKey, HttpConnectionPool> pool in _pools) 573internal readonly struct HttpConnectionKey : IEquatable<HttpConnectionKey> 599obj is HttpConnectionKey hck && 602public bool Equals(HttpConnectionKey other) =>