Appearance
ResolveAsync Method
Definition
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
Task<IReadOnlyList<IPAddress>> ResolveAsync(string host, CancellationToken cancellationToken = null)
csharp
Task<IReadOnlyList<IPAddress>> ResolveAsync(string host, CancellationToken cancellationToken = null)Resolves a host name to its IPv4 and IPv6 addresses.
Parameters
| Name | Description |
|---|---|
cancellationToken | A token to cancel the operation. |
host | The host name to resolve. |
Returns
The resolved addresses, or an empty list when none exist.