1 write to Port
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (1)
39
Port
= port;
20 references to Port
System.Net.Http (20)
System\Net\Http\SocketsHttpHandler\ConnectionPool\ConnectionSetupDistributedTracing.cs (3)
28
activity.DisplayName = $"HTTP connection_setup {authority.HostValue}:{authority.
Port
}";
32
activity.SetTag("server.port", authority.
Port
);
77
activity.DisplayName = $"HTTP wait_for_connection {authority.HostValue}:{authority.
Port
}";
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (5)
183
: $"{_originAuthority.HostValue}:{_originAuthority.
Port
}";
304
public bool IsDefaultPort => OriginAuthority.
Port
== (IsSecure ? DefaultHttpsPort : DefaultHttpPort);
584
stream = await ConnectToTcpHostAsync(_originAuthority.IdnHost, _originAuthority.
Port
, request, async, cancellationToken).ConfigureAwait(false);
785
tunnelRequest.Headers.Host = $"{_originAuthority.IdnHost}:{_originAuthority.
Port
}"; // This specifies destination host/port to connect to
819
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)
266
QuicConnection quicConnection = await ConnectHelper.ConnectQuicAsync(queueItem.Request, new DnsEndPoint(authority.IdnHost, authority.
Port
), _poolManager.Settings._pooledConnectionIdleTimeout, _sslOptionsHttp3!, connection.StreamCapacityCallback, cts.Token).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)
75
_pool.OriginAuthority.
Port
,
89
int port = _pool.OriginAuthority.
Port
;
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
53
tags.Add("server.port", pool.OriginAuthority.
Port
);