4 instantiations of IPHostEntry
System.Net.NameResolution (4)
System\Net\Dns.cs (4)
400new IPHostEntry 445new IPHostEntry 522new IPHostEntry 686new IPHostEntry
45 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 (42)
System\Net\Dns.cs (41)
40public static IPHostEntry GetHostEntry(IPAddress address) 52IPHostEntry ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified); 58public static IPHostEntry GetHostEntry(string hostNameOrAddress) => 62/// Resolves a host name or IP address to an <see cref="IPHostEntry"/> instance. 67/// An <see cref="IPHostEntry"/> instance that contains the address information about the host specified in <paramref name="hostNameOrAddress"/>. 69public static IPHostEntry GetHostEntry(string hostNameOrAddress, AddressFamily family) 74IPHostEntry ipHostEntry; 94public static Task<IPHostEntry> GetHostEntryAsync(string hostNameOrAddress) => 98/// Resolves a host name or IP address to an <see cref="IPHostEntry"/> instance as an asynchronous operation. 104/// an <see cref="IPHostEntry"/> instance that contains the address information about the host specified in <paramref name="hostNameOrAddress"/>. 106public static Task<IPHostEntry> GetHostEntryAsync(string hostNameOrAddress, CancellationToken cancellationToken) => 110/// Resolves a host name or IP address to an <see cref="IPHostEntry"/> instance as an asynchronous operation. 117/// an <see cref="IPHostEntry"/> instance that contains the address information about the host specified in <paramref name="hostNameOrAddress"/>. 119public static Task<IPHostEntry> GetHostEntryAsync(string hostNameOrAddress, AddressFamily family, CancellationToken cancellationToken = default) 123Task<IPHostEntry> t = GetHostEntryCoreAsync(hostNameOrAddress, justReturnParsedIp: false, throwOnIIPAny: true, family, cancellationToken); 152public static Task<IPHostEntry> GetHostEntryAsync(IPAddress address) 167IPHostEntry ipHostEntry = GetHostEntryCore((IPAddress)s, AddressFamily.Unspecified, activity); 179public static IPHostEntry EndGetHostEntry(IAsyncResult asyncResult) 185return TaskToAsyncResult.End<IPHostEntry>(asyncResult); 265public static IPHostEntry GetHostByName(string hostName) 282public static IPHostEntry EndGetHostByName(IAsyncResult asyncResult) 288return TaskToAsyncResult.End<IPHostEntry>(asyncResult); 292public static IPHostEntry GetHostByAddress(string address) 298IPHostEntry ipHostEntry = GetHostEntryCore(IPAddress.Parse(address), AddressFamily.Unspecified); 305public static IPHostEntry GetHostByAddress(IPAddress address) 311IPHostEntry ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified); 318public static IPHostEntry Resolve(string hostName) 323IPHostEntry ipHostEntry; 351public static IPHostEntry EndResolve(IAsyncResult asyncResult) 355IPHostEntry ipHostEntry; 359ipHostEntry = TaskToAsyncResult.End<IPHostEntry>(asyncResult); 384private static IPHostEntry GetHostEntryCore(string hostName, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) => 385(IPHostEntry)GetHostEntryOrAddressesCore(hostName, justAddresses: false, addressFamily, activityOrDefault); 463private static IPHostEntry GetHostEntryCore(IPAddress address, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) => 464(IPHostEntry)GetHostEntryOrAddressesCore(address, justAddresses: false, addressFamily, activityOrDefault); 547private static Task<IPHostEntry> GetHostEntryCoreAsync(string hostName, bool justReturnParsedIp, bool throwOnIIPAny, AddressFamily family, CancellationToken cancellationToken) => 548(Task<IPHostEntry>)GetHostEntryOrAddressesCoreAsync(hostName, justReturnParsedIp, throwOnIIPAny, justAddresses: false, family, cancellationToken); 559Task.FromCanceled<IPHostEntry>(cancellationToken); 566Task.FromResult((IPHostEntry)resultOnFailure); 606: GetAddrInfoWithTelemetryAsync<IPHostEntry>(hostName, justAddresses, family, cancellationToken); 685private static IPHostEntry CreateHostEntryForAddress(IPAddress address) =>
System\Net\NameResolutionTelemetry.cs (1)
199IPHostEntry entry => GetStringValues(entry.AddressList),