5 instantiations of IPHostEntry
System.Net.NameResolution (5)
System\Net\Dns.cs (5)
400
new
IPHostEntry
529
NameResolutionTelemetry.Log.AfterResolution(hostName, activity, answer: justAddresses ? addresses : (object)new
IPHostEntry
{ AddressList = addresses, HostName = newHostName!, Aliases = aliases }, exception: null);
537
new
IPHostEntry
621
new
IPHostEntry
841
new
IPHostEntry
47 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)
144
IPHostEntry
result = await Dns.GetHostEntryAsync(authUri.IdnHost, cancellationToken).ConfigureAwait(false);
System.Net.NameResolution (44)
System\Net\Dns.cs (43)
40
public static
IPHostEntry
GetHostEntry(IPAddress address)
52
IPHostEntry
ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified);
58
public 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"/>.
69
public static
IPHostEntry
GetHostEntry(string hostNameOrAddress, AddressFamily family)
74
IPHostEntry
ipHostEntry;
94
public 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"/>.
106
public 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"/>.
119
public static Task<
IPHostEntry
> GetHostEntryAsync(string hostNameOrAddress, AddressFamily family, CancellationToken cancellationToken = default)
123
Task<
IPHostEntry
> t = GetHostEntryCoreAsync(hostNameOrAddress, justReturnParsedIp: false, throwOnIIPAny: true, family, cancellationToken);
152
public static Task<
IPHostEntry
> GetHostEntryAsync(IPAddress address)
167
IPHostEntry
ipHostEntry = GetHostEntryCore((IPAddress)s, AddressFamily.Unspecified, activity);
179
public static
IPHostEntry
EndGetHostEntry(IAsyncResult asyncResult)
185
return TaskToAsyncResult.End<
IPHostEntry
>(asyncResult);
265
public static
IPHostEntry
GetHostByName(string hostName)
282
public static
IPHostEntry
EndGetHostByName(IAsyncResult asyncResult)
288
return TaskToAsyncResult.End<
IPHostEntry
>(asyncResult);
292
public static
IPHostEntry
GetHostByAddress(string address)
298
IPHostEntry
ipHostEntry = GetHostEntryCore(IPAddress.Parse(address), AddressFamily.Unspecified);
305
public static
IPHostEntry
GetHostByAddress(IPAddress address)
311
IPHostEntry
ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified);
318
public static
IPHostEntry
Resolve(string hostName)
323
IPHostEntry
ipHostEntry;
351
public static
IPHostEntry
EndResolve(IAsyncResult asyncResult)
355
IPHostEntry
ipHostEntry;
359
ipHostEntry = TaskToAsyncResult.End<
IPHostEntry
>(asyncResult);
384
private static
IPHostEntry
GetHostEntryCore(string hostName, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) =>
385
(
IPHostEntry
)GetHostEntryOrAddressesCore(hostName, justAddresses: false, addressFamily, activityOrDefault);
562
private static
IPHostEntry
GetHostEntryCore(IPAddress address, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) =>
563
(
IPHostEntry
)GetHostEntryOrAddressesCore(address, justAddresses: false, addressFamily, activityOrDefault);
646
private static Task<
IPHostEntry
> GetHostEntryCoreAsync(string hostName, bool justReturnParsedIp, bool throwOnIIPAny, AddressFamily family, CancellationToken cancellationToken) =>
647
(Task<
IPHostEntry
>)GetHostEntryOrAddressesCoreAsync(hostName, justReturnParsedIp, throwOnIIPAny, justAddresses: false, family, cancellationToken);
658
Task.FromCanceled<
IPHostEntry
>(cancellationToken);
665
Task.FromResult((
IPHostEntry
)resultOnFailure);
700
Task.FromException<
IPHostEntry
>(invalidDomainException!);
723
: GetAddrInfoWithTelemetryAsync<
IPHostEntry
>(hostName, justAddresses, family, cancellationToken);
802
if (isLocalhostSubdomain && result is
IPHostEntry
entry && entry.AddressList.Length == 0)
840
private static
IPHostEntry
CreateHostEntryForAddress(IPAddress address) =>
System\Net\NameResolutionTelemetry.cs (1)
199
IPHostEntry
entry => GetStringValues(entry.AddressList),