14 references to GetAddressBytes
InMemory.FunctionalTests (1)
TestTransport\InMemoryHttpClientSlim.cs (1)
55address = new IPAddress(address.GetAddressBytes()); // Drop scope Id.
Microsoft.AspNetCore.HttpOverrides (2)
IPNetwork.cs (2)
35PrefixBytes = Prefix.GetAddressBytes(); 65var addressBytes = address.GetAddressBytes();
Microsoft.AspNetCore.InternalTesting (1)
HttpClientSlim.cs (1)
54address = new IPAddress(address.GetAddressBytes()); // Drop scope Id.
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerTests.cs (2)
1000resolvedEndPoint = new IPEndPoint(new IPAddress(ipEndPoint.Address.GetAddressBytes()), port); 1052resolvedEndPoint = new IPEndPoint(new IPAddress(ipEndPoint.Address.GetAddressBytes()), port);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Network\WindowsTcpStateInfo.cs (1)
39.Select(s => IPAddress.Parse(s).GetAddressBytes())
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
214builder.Host = new IPAddress(ip.GetAddressBytes()).ToString(); // Without the scope id.
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.cs (1)
112new IPAddress(address.GetAddressBytes(), address.ScopeId);
System.Net.Quic (1)
src\libraries\Common\src\System\Net\Security\CertificateValidation.Unix.cs (1)
42byte[] addressBytes = hostnameAsIp.GetAddressBytes();
System.Net.Requests (1)
System\Net\FtpControlStream.cs (1)
812byte[] localAddressInBytes = address.GetAddressBytes();
System.Net.Security (1)
src\libraries\Common\src\System\Net\Security\CertificateValidation.Unix.cs (1)
42byte[] addressBytes = hostnameAsIp.GetAddressBytes();
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (1)
47AddGeneralName(new GeneralNameAsn { IPAddress = ipAddress.GetAddressBytes() });
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\WindowsIPAddress.cs (1)
126byte[] abOctet = ipAddress.GetAddressBytes();