13 references to IsDefaultPort
System (5)
net\System\Net\HttpWebRequest.cs (3)
2450
return GetHostAndPortString(_Uri.Host, _Uri.Port, !_Uri.
IsDefaultPort
);
2472
if (!_HostUri.
IsDefaultPort
) {
4723
return GetHostAndPortString(hostToUse, sourceUri.Port, addDefaultPort || !sourceUri.
IsDefaultPort
);
net\System\Net\ServicePointManager.cs (1)
629
if (address.
IsDefaultPort
)
net\System\Net\webproxy.cs (1)
335
string matchUriString = input.Scheme + "://" + input.Host + (!input.
IsDefaultPort
? (":"+input.Port) : "" );
System.Runtime.Remoting (1)
channels\tcp\tcpclientchannel.cs (1)
361
if (uri.
IsDefaultPort
)
System.ServiceModel (2)
System\ServiceModel\Security\FederatedSecurityTokenManager.cs (1)
595
if ( listenUri.
IsDefaultPort
)
System\UriTemplate.cs (1)
623
string originalHostHeader = uri.Host + ((!uri.
IsDefaultPort
) ? ":" + uri.Port.ToString(CultureInfo.InvariantCulture) : string.Empty);
System.ServiceModel.Channels (5)
System\ServiceModel\Channels\UdpChannelFactory.cs (1)
99
if (via.
IsDefaultPort
|| via.Port == 0)
System\ServiceModel\Channels\UdpChannelListener.cs (4)
80
Fx.Assert(!this.listenUri.
IsDefaultPort
, "Listen Uri's port should never be the default port: " + this.listenUri);
510
if (listenUriBaseAddress.
IsDefaultPort
|| listenUriBaseAddress.Port == 0)
530
int port = (this.listenUri.
IsDefaultPort
? 0 : this.listenUri.Port);
684
if (context.ListenUriMode == ListenUriMode.Unique && !listenUriBase.
IsDefaultPort
)