3 instantiations of IPHostEntry
System.Net.NameResolution (3)
System\Net\Dns.cs (3)
409
new
IPHostEntry
481
new
IPHostEntry
638
new
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)
144
IPHostEntry
result = await Dns.GetHostEntryAsync(authUri.IdnHost, cancellationToken).ConfigureAwait(false);
System.Net.NameResolution (41)
System\Net\Dns.cs (40)
39
public static
IPHostEntry
GetHostEntry(IPAddress address)
51
IPHostEntry
ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified);
57
public 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"/>.
68
public static
IPHostEntry
GetHostEntry(string hostNameOrAddress, AddressFamily family)
73
IPHostEntry
ipHostEntry;
93
public 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"/>.
105
public 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"/>.
118
public static Task<
IPHostEntry
> GetHostEntryAsync(string hostNameOrAddress, AddressFamily family, CancellationToken cancellationToken = default)
122
Task<
IPHostEntry
> t = GetHostEntryCoreAsync(hostNameOrAddress, justReturnParsedIp: false, throwOnIIPAny: true, family, cancellationToken);
151
public static Task<
IPHostEntry
> GetHostEntryAsync(IPAddress address)
166
IPHostEntry
ipHostEntry = GetHostEntryCore((IPAddress)s, AddressFamily.Unspecified, activity);
178
public static
IPHostEntry
EndGetHostEntry(IAsyncResult asyncResult)
184
return TaskToAsyncResult.End<
IPHostEntry
>(asyncResult);
264
public static
IPHostEntry
GetHostByName(string hostName)
281
public static
IPHostEntry
EndGetHostByName(IAsyncResult asyncResult)
287
return TaskToAsyncResult.End<
IPHostEntry
>(asyncResult);
291
public static
IPHostEntry
GetHostByAddress(string address)
297
IPHostEntry
ipHostEntry = GetHostEntryCore(IPAddress.Parse(address), AddressFamily.Unspecified);
304
public static
IPHostEntry
GetHostByAddress(IPAddress address)
310
IPHostEntry
ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified);
317
public static
IPHostEntry
Resolve(string hostName)
322
IPHostEntry
ipHostEntry;
350
public static
IPHostEntry
EndResolve(IAsyncResult asyncResult)
354
IPHostEntry
ipHostEntry;
358
ipHostEntry = TaskToAsyncResult.End<
IPHostEntry
>(asyncResult);
383
private static
IPHostEntry
GetHostEntryCore(string hostName, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) =>
384
(
IPHostEntry
)GetHostEntryOrAddressesCore(hostName, justAddresses: false, addressFamily, activityOrDefault);
427
private static
IPHostEntry
GetHostEntryCore(IPAddress address, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) =>
428
(
IPHostEntry
)GetHostEntryOrAddressesCore(address, justAddresses: false, addressFamily, activityOrDefault);
506
private 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);
518
Task.FromCanceled<
IPHostEntry
>(cancellationToken);
558
: GetAddrInfoWithTelemetryAsync<
IPHostEntry
>(hostName, justAddresses, family, cancellationToken);
637
private static
IPHostEntry
CreateHostEntryForAddress(IPAddress address) =>
System\Net\NameResolutionTelemetry.cs (1)
199
IPHostEntry
entry => GetStringValues(entry.AddressList),