3 instantiations of IPHostEntry
System.Net.NameResolution (3)
System\Net\Dns.cs (3)
409new IPHostEntry 481new IPHostEntry 638new IPHostEntry
44 references to IPHostEntry
netstandard (1)
netstandard.cs (1)
1160[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.IPHostEntry))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
645[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.IPHostEntry))]
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
144IPHostEntry result = await Dns.GetHostEntryAsync(authUri.IdnHost, cancellationToken).ConfigureAwait(false);
System.Net.NameResolution (41)
System\Net\Dns.cs (40)
39public static IPHostEntry GetHostEntry(IPAddress address) 51IPHostEntry ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified); 57public static IPHostEntry GetHostEntry(string hostNameOrAddress) => 61/// Resolves a host name or IP address to an <see cref="IPHostEntry"/> instance. 66/// An <see cref="IPHostEntry"/> instance that contains the address information about the host specified in <paramref name="hostNameOrAddress"/>. 68public static IPHostEntry GetHostEntry(string hostNameOrAddress, AddressFamily family) 73IPHostEntry ipHostEntry; 93public static Task<IPHostEntry> GetHostEntryAsync(string hostNameOrAddress) => 97/// Resolves a host name or IP address to an <see cref="IPHostEntry"/> instance as an asynchronous operation. 103/// an <see cref="IPHostEntry"/> instance that contains the address information about the host specified in <paramref name="hostNameOrAddress"/>. 105public static Task<IPHostEntry> GetHostEntryAsync(string hostNameOrAddress, CancellationToken cancellationToken) => 109/// Resolves a host name or IP address to an <see cref="IPHostEntry"/> instance as an asynchronous operation. 116/// an <see cref="IPHostEntry"/> instance that contains the address information about the host specified in <paramref name="hostNameOrAddress"/>. 118public static Task<IPHostEntry> GetHostEntryAsync(string hostNameOrAddress, AddressFamily family, CancellationToken cancellationToken = default) 122Task<IPHostEntry> t = GetHostEntryCoreAsync(hostNameOrAddress, justReturnParsedIp: false, throwOnIIPAny: true, family, cancellationToken); 151public static Task<IPHostEntry> GetHostEntryAsync(IPAddress address) 166IPHostEntry ipHostEntry = GetHostEntryCore((IPAddress)s, AddressFamily.Unspecified, activity); 178public static IPHostEntry EndGetHostEntry(IAsyncResult asyncResult) 184return TaskToAsyncResult.End<IPHostEntry>(asyncResult); 264public static IPHostEntry GetHostByName(string hostName) 281public static IPHostEntry EndGetHostByName(IAsyncResult asyncResult) 287return TaskToAsyncResult.End<IPHostEntry>(asyncResult); 291public static IPHostEntry GetHostByAddress(string address) 297IPHostEntry ipHostEntry = GetHostEntryCore(IPAddress.Parse(address), AddressFamily.Unspecified); 304public static IPHostEntry GetHostByAddress(IPAddress address) 310IPHostEntry ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified); 317public static IPHostEntry Resolve(string hostName) 322IPHostEntry ipHostEntry; 350public static IPHostEntry EndResolve(IAsyncResult asyncResult) 354IPHostEntry ipHostEntry; 358ipHostEntry = TaskToAsyncResult.End<IPHostEntry>(asyncResult); 383private static IPHostEntry GetHostEntryCore(string hostName, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) => 384(IPHostEntry)GetHostEntryOrAddressesCore(hostName, justAddresses: false, addressFamily, activityOrDefault); 427private static IPHostEntry GetHostEntryCore(IPAddress address, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) => 428(IPHostEntry)GetHostEntryOrAddressesCore(address, justAddresses: false, addressFamily, activityOrDefault); 506private static Task<IPHostEntry> GetHostEntryCoreAsync(string hostName, bool justReturnParsedIp, bool throwOnIIPAny, AddressFamily family, CancellationToken cancellationToken) => 507(Task<IPHostEntry>)GetHostEntryOrAddressesCoreAsync(hostName, justReturnParsedIp, throwOnIIPAny, justAddresses: false, family, cancellationToken); 518Task.FromCanceled<IPHostEntry>(cancellationToken); 558: GetAddrInfoWithTelemetryAsync<IPHostEntry>(hostName, justAddresses, family, cancellationToken); 637private static IPHostEntry CreateHostEntryForAddress(IPAddress address) =>
System\Net\NameResolutionTelemetry.cs (1)
199IPHostEntry entry => GetStringValues(entry.AddressList),