Appearance
TryResolveWhoisServerAsync Method
Definition
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
Overloads
| Name | Description |
|---|---|
Task<WhoisServerMatch> TryResolveWhoisServerAsync(DomainProfile profile, CancellationToken cancellationToken = null) | Attempts to resolve the WHOIS server from a domain profile using the embedded registry, falling back to a live IANA referral query when the TLD is not embedded. |
Task<WhoisServerMatch> TryResolveWhoisServerAsync(string domain, CancellationToken cancellationToken = null) | Attempts to resolve the WHOIS server for a domain using the embedded registry, falling back to a live IANA referral query when the TLD is not embedded. |
Task<WhoisServerMatch> TryResolveWhoisServerAsync(Uri uri, CancellationToken cancellationToken = null) | Attempts to resolve the WHOIS server for a URI host using the embedded registry, falling back to a live IANA referral query when the TLD is not embedded. |
Task<WhoisServerMatch> TryResolveWhoisServerAsync(DomainProfile profile, CancellationToken cancellationToken = null)
csharp
Task<WhoisServerMatch> TryResolveWhoisServerAsync(DomainProfile profile, CancellationToken cancellationToken = null)Attempts to resolve the WHOIS server from a domain profile using the embedded registry, falling back to a live IANA referral query when the TLD is not embedded.
Parameters
| Name | Description |
|---|---|
cancellationToken | A token to cancel the operation. |
profile | The domain profile to resolve. |
Returns
The server match details when resolution succeeds; otherwise, .
Task<WhoisServerMatch> TryResolveWhoisServerAsync(string domain, CancellationToken cancellationToken = null)
csharp
Task<WhoisServerMatch> TryResolveWhoisServerAsync(string domain, CancellationToken cancellationToken = null)Attempts to resolve the WHOIS server for a domain using the embedded registry, falling back to a live IANA referral query when the TLD is not embedded.
Parameters
| Name | Description |
|---|---|
cancellationToken | A token to cancel the operation. |
domain | The hostname, domain name, or absolute URI to resolve. |
Returns
The server match details when resolution succeeds; otherwise, .
Task<WhoisServerMatch> TryResolveWhoisServerAsync(Uri uri, CancellationToken cancellationToken = null)
csharp
Task<WhoisServerMatch> TryResolveWhoisServerAsync(Uri uri, CancellationToken cancellationToken = null)Attempts to resolve the WHOIS server for a URI host using the embedded registry, falling back to a live IANA referral query when the TLD is not embedded.
Parameters
| Name | Description |
|---|---|
cancellationToken | A token to cancel the operation. |
uri | The absolute URI whose host is resolved. |
Returns
The server match details when resolution succeeds; otherwise, .