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