Method ResolveAsync
- Namespace
- MailFathom.Application.Mail
- Assembly
- MailFathom.Application.dll
ResolveAsync(string, string, CancellationToken)
Resolves what a signing domain publishes for one selector.
Task<string?> ResolveAsync(string selector, string signingDomain, CancellationToken cancellationToken)
Parameters
selectorstringThe selector a signature named, which is the label beneath
_domainkey.signingDomainstringThe domain a signature was made for.
cancellationTokenCancellationTokenCancels the lookup.
Returns
Remarks
Cancellation through cancellationToken is the caller giving up and propagates as it does
anywhere else. A deadline the implementation applies to the lookup itself is not: it answers with no record,
because a slow nameserver is a fact about the network rather than a decision the caller took.
Exceptions
- ArgumentNullException
Thrown when
selectororsigningDomainis null.