4 instantiations of IPHostEntry
System.Net.NameResolution (4)
System\Net\Dns.cs (4)
400
new
IPHostEntry
445
new
IPHostEntry
522
new
IPHostEntry
686
new
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)
144
IPHostEntry
result = await Dns.GetHostEntryAsync(authUri.IdnHost, cancellationToken).ConfigureAwait(false);
System.Net.NameResolution (42)
System\Net\Dns.cs (41)
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);
463
private static
IPHostEntry
GetHostEntryCore(IPAddress address, AddressFamily addressFamily, NameResolutionActivity? activityOrDefault = default) =>
464
(
IPHostEntry
)GetHostEntryOrAddressesCore(address, justAddresses: false, addressFamily, activityOrDefault);
547
private 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);
559
Task.FromCanceled<
IPHostEntry
>(cancellationToken);
566
Task.FromResult((
IPHostEntry
)resultOnFailure);
606
: GetAddrInfoWithTelemetryAsync<
IPHostEntry
>(hostName, justAddresses, family, cancellationToken);
685
private static
IPHostEntry
CreateHostEntryForAddress(IPAddress address) =>
System\Net\NameResolutionTelemetry.cs (1)
199
IPHostEntry
entry => GetStringValues(entry.AddressList),