Appearance
DomainQueryAsync Method
Definition
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
Overloads
Task<RdapDomainResponse> DomainQueryAsync(DomainProfile profile, CancellationToken cancellationToken = null)
csharp
Task<RdapDomainResponse> DomainQueryAsync(DomainProfile profile, CancellationToken cancellationToken = null)Queries RDAP data for a domain profile using the embedded provider registry when available, falling back to DefaultBootstrapBaseUrl when no registry match exists.
Parameters
| Name | Description |
|---|---|
cancellationToken | A token to cancel the operation. |
profile | The resolved domain profile to query. |
Returns
The RDAP domain response for the profile registrable domain.
Task<RdapDomainResponse> DomainQueryAsync(string domain, RdapServiceProvider provider, CancellationToken cancellationToken = null)
csharp
Task<RdapDomainResponse> DomainQueryAsync(string domain, RdapServiceProvider provider, CancellationToken cancellationToken = null)Queries RDAP data for a domain name using the specified service provider.
Parameters
| Name | Description |
|---|---|
cancellationToken | A token to cancel the operation. |
domain | The domain name to query. |
provider | The resolved RDAP service provider. |
Returns
The RDAP domain response for the requested domain.
Task<RdapDomainResponse> DomainQueryAsync(string domain, string serviceBaseUrl, CancellationToken cancellationToken = null)
csharp
Task<RdapDomainResponse> DomainQueryAsync(string domain, string serviceBaseUrl, CancellationToken cancellationToken = null)Queries RDAP data for a domain name using the specified RDAP service base URL.
Parameters
| Name | Description |
|---|---|
cancellationToken | A token to cancel the operation. |
domain | The domain name to query. |
serviceBaseUrl | The RDAP service base URL to query, such as DefaultBootstrapBaseUrl. |
Returns
The RDAP domain response for the requested domain.
Remarks
This overload uses only serviceBaseUrl and does not consult the embedded registry.
Task<RdapDomainResponse> DomainQueryAsync(string domain, CancellationToken cancellationToken = null)
csharp
Task<RdapDomainResponse> DomainQueryAsync(string domain, CancellationToken cancellationToken = null)Queries RDAP data for a hostname, domain name, or absolute URI using the embedded provider registry when available, falling back to DefaultBootstrapBaseUrl when no registry match exists.
Parameters
| Name | Description |
|---|---|
cancellationToken | A token to cancel the operation. |
domain | The hostname, domain name, or absolute URI to query. |
Returns
The RDAP domain response for the requested registrable domain.
Task<RdapDomainResponse> DomainQueryAsync(Uri uri, CancellationToken cancellationToken = null)
csharp
Task<RdapDomainResponse> DomainQueryAsync(Uri uri, CancellationToken cancellationToken = null)Queries RDAP data for a URI host using the embedded provider registry when available, falling back to DefaultBootstrapBaseUrl when no registry match exists.
Parameters
| Name | Description |
|---|---|
cancellationToken | A token to cancel the operation. |
uri | The absolute URI whose registrable domain is queried. |
Returns
The RDAP domain response for the requested registrable domain.