Base:
12 references to Equals
Aspire.Dashboard.Tests (2)
Integration\StartupTests.cs (2)
789Assert.True(ipEndPoint.Address.Equals(IPAddress.Any) || ipEndPoint.Address.Equals(IPAddress.IPv6Any), "Endpoint address should be IPv4 or IPv6.");
Aspire.Hosting (2)
Dcp\DcpExecutor.cs (2)
1593var ip when IPAddress.Any.Equals(ip) => ("localhost", EndpointBindingMode.IPv4AnyAddresses), // 0.0.0.0 (IPv4 all addresses) 1594var ip when IPAddress.IPv6Any.Equals(ip) => ("localhost", EndpointBindingMode.IPv6AnyAddresses), // :: (IPv6 all addreses)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
AddressBinderTests.cs (2)
291if (endpoint.IPEndPoint.Address.Equals(IPAddress.IPv6Any)) 297if (endpoint.IPEndPoint.Address.Equals(IPAddress.Any))
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
SocketTransportOptions.cs (1)
146if (ip.Address.Equals(IPAddress.IPv6Any))
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
1123.Where(ip => !ip.Equals(IPAddress.IPv6Loopback))
System.Net.HttpListener (2)
System\Net\HttpListenerRequest.cs (1)
111public bool IsLocal => LocalEndPoint!.Address.Equals(RemoteEndPoint!.Address);
System\Net\Managed\HttpEndPointManager.cs (1)
130if (IPAddress.Any.Equals(addr))
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.cs (2)
67if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.IPv6Any))