22 references to IsDefaultPort
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsPolicyBuilder.cs (1)
76if (!uri.IsDefaultPort)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\Http1Connection.cs (1)
784if (!_absoluteRequestTarget.IsDefaultPort
Microsoft.Build (1)
Construction\Solution\SolutionFile.cs (1)
840if (!uri.IsDefaultPort)
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsIpc\IpcTcpSocketEndPoint.cs (1)
80port = uri.IsDefaultPort ? 0 : uri.Port;
Microsoft.Extensions.Http (1)
src\runtime\src\libraries\Common\src\System\Net\Http\UriRedactionHelper.cs (1)
78return (redactQuery, uri.IsDefaultPort) switch
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (1)
YarpServiceDiscoveryTests.cs (1)
263Assert.True(uri.IsDefaultPort, "URI should use the default port when resolved via DNS.");
Microsoft.SourceLink.AzureDevOpsServer.Git (1)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (1)
267if (value.HasDefaultContentUri && value.Port == -1 && !repoUri.IsDefaultPort && contentUri.Port != repoUri.Port)
Microsoft.SourceLink.AzureRepos.Git (1)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (1)
267if (value.HasDefaultContentUri && value.Port == -1 && !repoUri.IsDefaultPort && contentUri.Port != repoUri.Port)
Microsoft.SourceLink.Bitbucket.Git (1)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (1)
267if (value.HasDefaultContentUri && value.Port == -1 && !repoUri.IsDefaultPort && contentUri.Port != repoUri.Port)
Microsoft.SourceLink.Gitea (1)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (1)
267if (value.HasDefaultContentUri && value.Port == -1 && !repoUri.IsDefaultPort && contentUri.Port != repoUri.Port)
Microsoft.SourceLink.Gitee (1)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (1)
267if (value.HasDefaultContentUri && value.Port == -1 && !repoUri.IsDefaultPort && contentUri.Port != repoUri.Port)
Microsoft.SourceLink.GitHub (1)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (1)
267if (value.HasDefaultContentUri && value.Port == -1 && !repoUri.IsDefaultPort && contentUri.Port != repoUri.Port)
Microsoft.SourceLink.GitLab (1)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (1)
267if (value.HasDefaultContentUri && value.Port == -1 && !repoUri.IsDefaultPort && contentUri.Port != repoUri.Port)
Microsoft.SourceLink.GitWeb (1)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (1)
267if (value.HasDefaultContentUri && value.Port == -1 && !repoUri.IsDefaultPort && contentUri.Port != repoUri.Port)
NuGet.Configuration (1)
Proxy\WebProxy.cs (1)
73var normalizedUri = uri.Scheme + "://" + uri.Host + ((!uri.IsDefaultPort) ? (":" + uri.Port) : "");
System.Net.Http (3)
src\runtime\src\libraries\Common\src\System\Net\Http\UriRedactionHelper.cs (1)
78return (redactQuery, uri.IsDefaultPort) switch
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
118if (!isProxyAuth && !authUri.IsDefaultPort && UsePortInSpn)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
405if (!requestUri.IsDefaultPort)
System.Net.Requests (3)
System\Net\HttpWebRequest.cs (2)
368return (_hostUri == null || !_hostHasPort) && Address.IsDefaultPort ? 389if (!_hostUri.IsDefaultPort)
System\Net\ServicePoint\ServicePointManager.cs (1)
196private static string MakeQueryString(Uri address) => address.IsDefaultPort ?
System.Net.WebProxy (1)
System\Net\WebProxy.cs (1)
371bool isDefaultPort = input.IsDefaultPort;