1 write to Port
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (1)
49Port = port;
21 references to Port
System.Net.Http (21)
System\Net\Http\SocketsHttpHandler\ConnectionPool\ConnectionSetupDistributedTracing.cs (1)
76activity?.DisplayName = $"HTTP wait_for_connection {authority.HostValue}:{authority.Port}";
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (6)
194: $"{_originAuthority.HostValue}:{_originAuthority.Port}"; 302public bool IsDefaultPort => OriginAuthority.Port == (IsSecure ? DefaultHttpsPort : DefaultHttpPort); 586Activity? activity = ConnectionSetupDistributedTracing.StartConnectionSetupActivity(IsSecure, _telemetryServerAddress, OriginAuthority.Port); 595stream = await ConnectToTcpHostAsync(_originAuthority.IdnHost, _originAuthority.Port, request, async, connectionId, cancellationToken).ConfigureAwait(false); 798tunnelRequest.Headers.Host = $"{_originAuthority.IdnHost}:{_originAuthority.Port}"; // This specifies destination host/port to connect to 832await SocksHelper.EstablishSocksTunnelAsync(stream, _originAuthority.IdnHost, _originAuthority.Port, _proxyUri, ProxyCredentials, async, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
61sb.Append(CultureInfo.InvariantCulture, $":{_originAuthority.Port}");
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (2)
266connectionSetupActivity = ConnectionSetupDistributedTracing.StartConnectionSetupActivity(isSecure: true, _telemetryServerAddress, authority.Port); 269var connectEndPoint = new DnsEndPoint(authority.IdnHost, authority.Port);
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (3)
79bool altUsedDefaultPort = pool.Kind == HttpConnectionKind.Http && authority.Port == HttpConnectionPool.DefaultHttpPort || pool.Kind == HttpConnectionKind.Https && authority.Port == HttpConnectionPool.DefaultHttpsPort; 80string altUsedValue = altUsedDefaultPort ? authority.IdnHost : string.Create(CultureInfo.InvariantCulture, $"{authority.IdnHost}:{authority.Port}");
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (4)
54return other != null && string.Equals(IdnHost, other.IdnHost) && Port == other.Port; 64return HashCode.Combine(IdnHost, Port); 70return IdnHost != null ? $"{IdnHost}:{Port}" : "<empty>";
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (3)
108connectedEndPoint ?? new DnsEndPoint(authority.IdnHost, authority.Port), 134_pool.OriginAuthority.Port, 149int port = _pool.OriginAuthority.Port;
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
191tags.Add("server.port", pool.OriginAuthority.Port);