Table of Contents

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

selector string

The selector a signature named, which is the label beneath _domainkey.

signingDomain string

The domain a signature was made for.

cancellationToken CancellationToken

Cancels the lookup.

Returns

Task<string>

The record's text, or null where none could be resolved.

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 selector or signingDomain is null.