1 write to Port
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (1)
39
Port
= port;
17 references to Port
System.Net.Http (17)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (5)
183
: $"{_originAuthority.HostValue}:{_originAuthority.
Port
}";
300
public bool IsDefaultPort => OriginAuthority.
Port
== (IsSecure ? DefaultHttpsPort : DefaultHttpPort);
573
stream = await ConnectToTcpHostAsync(_originAuthority.IdnHost, _originAuthority.
Port
, request, async, cancellationToken).ConfigureAwait(false);
762
tunnelRequest.Headers.Host = $"{_originAuthority.IdnHost}:{_originAuthority.
Port
}"; // This specifies destination host/port to connect to
796
await SocksHelper.EstablishSocksTunnelAsync(stream, _originAuthority.IdnHost, _originAuthority.
Port
, _proxyUri, ProxyCredentials, async, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
52
sb.Append(CultureInfo.InvariantCulture, $":{_originAuthority.
Port
}");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
162
quicConnection = await ConnectHelper.ConnectQuicAsync(request, new DnsEndPoint(authority.IdnHost, authority.
Port
), _poolManager.Settings._pooledConnectionIdleTimeout, _sslOptionsHttp3!, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (3)
78
bool altUsedDefaultPort = pool.Kind == HttpConnectionKind.Http && authority.
Port
== HttpConnectionPool.DefaultHttpPort || pool.Kind == HttpConnectionKind.Https && authority.
Port
== HttpConnectionPool.DefaultHttpsPort;
79
string altUsedValue = altUsedDefaultPort ? authority.IdnHost : string.Create(CultureInfo.InvariantCulture, $"{authority.IdnHost}:{authority.
Port
}");
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (4)
44
return other != null && string.Equals(IdnHost, other.IdnHost) &&
Port
== other.
Port
;
54
return HashCode.Combine(IdnHost,
Port
);
60
return IdnHost != null ? $"{IdnHost}:{
Port
}" : "<empty>";
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (2)
58
pool.IsDefaultPort ? null : pool.OriginAuthority.
Port
,
72
int port = pool.OriginAuthority.
Port
;
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
47
tags.Add("server.port", pool.OriginAuthority.
Port
);