18 references to IsDefaultPort
InMemory.FunctionalTests (2)
RequestTests.cs (1)
247if (requestTarget.IsDefaultPort)
TestTransport\InMemoryHttpClientSlim.cs (1)
56if (requestUri.IsDefaultPort)
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsPolicyBuilder.cs (1)
76if (!uri.IsDefaultPort)
Microsoft.AspNetCore.InternalTesting (1)
HttpClientSlim.cs (1)
55if (requestUri.IsDefaultPort)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\Http1Connection.cs (1)
653if (!_absoluteRequestTarget.IsDefaultPort
Microsoft.AspNetCore.TestHost (3)
ClientHandler.cs (1)
174if (request.RequestUri.IsDefaultPort)
TestServer.cs (1)
217if (BaseAddress.IsDefaultPort)
WebSocketClient.cs (1)
67request.Host = uri.IsDefaultPort
Microsoft.Build (1)
Construction\Solution\SolutionFile.cs (1)
827if (!uri.IsDefaultPort)
Microsoft.Extensions.Http (1)
Logging\LogHelper.cs (1)
198return (redactQuery, uri.IsDefaultPort) switch
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (1)
YarpServiceDiscoveryTests.cs (1)
259Assert.True(uri.IsDefaultPort, "URI should use the default port when resolved via DNS.");
System.Net.Http (3)
System\Net\Http\DiagnosticsHelper.cs (1)
36return (redactQuery, uri.IsDefaultPort) switch
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
148if (!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)
170bool isDefaultPort = input.IsDefaultPort;