Table of Contents

Method FindByAddressAsync

Namespace
MailFathom.Application.Contacts
Assembly
MailFathom.Application.dll

FindByAddressAsync(EmailAddress, CancellationToken)

Reads the person who uses one address.

Task<Contact?> FindByAddressAsync(EmailAddress address, CancellationToken cancellationToken)

Parameters

address EmailAddress

The address to resolve.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<Contact>

The complete contact holding that address, or null when nobody in the book does.

Remarks

The lookup is by the address's comparison form, so a caller need not know which casing the book happens to have recorded. At most one contact can answer, which is a property of the store rather than of this method.