IHostNameResolver
Reverse-resolves an address to a machine name.
public interface IHostNameResolver
1. Methods
1.1. ResolveAsync(IP, TimeSpan, CancellationToken)
Resolve the name for address, or null when nothing answers. Never throws for an unresolvable address.
Task<MachineName?> ResolveAsync(IP address, TimeSpan timeout, CancellationToken cancellationToken)
| Name | Type | Description |
|---|---|---|
address |
IP |
Address to reverse-resolve. |
timeout |
TimeSpan |
How long to wait before giving up. |
cancellationToken |
CancellationToken |
Cancels the lookup. |
Returns: Task<MachineName?>