Skip to content

TryResolveWhoisServerAsync Method ​

Definition ​

  • Namespace: JASE.Network
  • Assembly: JASE.Network.dll

Overloads ​

NameDescription
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 ​

NameDescription
cancellationTokenA token to cancel the operation.
profileThe 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 ​

NameDescription
cancellationTokenA token to cancel the operation.
domainThe 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 ​

NameDescription
cancellationTokenA token to cancel the operation.
uriThe absolute URI whose host is resolved.

Returns ​

The server match details when resolution succeeds; otherwise, .