Appearance
CreateAsync Method
Definition
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
Overloads
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
cancellationToken | A token to cancel the operation. |
host | The 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
| Name | Description |
|---|---|
cancellationToken | A token to cancel the operation. |
uri | The absolute URI whose host is evaluated. |
Returns
The domain profile when the URI host can be resolved; otherwise, .