Skip to content

CreateAsync Method ​

Definition ​

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

Overloads ​

NameDescription
Task<DomainProfile> CreateAsync(string host, CancellationToken cancellationToken = null)Creates a profile for a hostname, domain name, or absolute URI and resolves the WHOIS server using the embedded registry or a live IANA referral lookup when required.
Task<DomainProfile> CreateAsync(Uri uri, CancellationToken cancellationToken = null)Creates a profile for a URI host and resolves the WHOIS server using the embedded registry or a live IANA referral lookup when required.

Task<DomainProfile> CreateAsync(string host, CancellationToken cancellationToken = null) ​

csharp
Task<DomainProfile> CreateAsync(string host, CancellationToken cancellationToken = null)

Creates a profile for a hostname, domain name, or absolute URI and resolves the WHOIS server using the embedded registry or a live IANA referral lookup when required.

Parameters ​

NameDescription
cancellationTokenA token to cancel the operation.
hostThe hostname, domain name, or absolute URI to evaluate.

Returns ​

The domain profile when the input can be resolved; otherwise, .

Task<DomainProfile> CreateAsync(Uri uri, CancellationToken cancellationToken = null) ​

csharp
Task<DomainProfile> CreateAsync(Uri uri, CancellationToken cancellationToken = null)

Creates a profile for a URI host and resolves the WHOIS server using the embedded registry or a live IANA referral lookup when required.

Parameters ​

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

Returns ​

The domain profile when the URI host can be resolved; otherwise, .