Appearance
DomainProfile Class
Definition
Describes a hostname, its registrable domain breakdown, and embedded RDAP/WHOIS routing details.
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
Properties
| Name | Description |
|---|---|
HasEmbeddedRdapProvider | Gets a value indicating whether the registrable domain has an entry in the embedded RDAP provider registry. |
HasEmbeddedWhoisServer | Gets a value indicating whether the IANA root-zone TLD has an entry in the embedded WHOIS server registry. |
Host | Gets the normalized hostname that was evaluated. |
IanaTld | Gets the IANA root-zone TLD label for the registrable domain, such as com or uk. |
PublicSuffix | Gets the public suffix for the hostname, such as com or co.uk. |
RdapProvider | Gets the resolved RDAP service provider when HasEmbeddedRdapProvider is . |
RegistrableDomain | Gets the registrable domain for the hostname, such as example.com or example.co.uk. |
Subdomain | Gets the subdomain prefix relative to RegistrableDomain, such as www, |
WhoisServer | Gets the resolved WHOIS server match when one is known from the embedded registry or, |
Methods
| Name | Description |
|---|---|
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) | 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. |
bool TryCreate(Uri uri, out DomainProfile profile) | Attempts to create a profile for a URI host using embedded registry data. |
bool TryCreate(string host, out DomainProfile profile) | Attempts to create a profile for a hostname, domain name, or absolute URI using embedded registry data. |
Remarks
Use TryCreate for local, embedded registry data. Use CreateAsync when WHOIS server resolution may require a live IANA referral lookup.