Table of Contents

Method FindByAddressAsync

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

FindByAddressAsync(ContactBookScope, EmailAddress, CancellationToken)

Reads the person who uses one address.

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

Parameters

scope ContactBookScope

The books read.

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 scope 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 answers: each book holds an address once, and where several books hold it the first of them in the scope's order is the one that answers.