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
scopeContactBookScopeThe books read.
addressEmailAddressThe address to resolve.
cancellationTokenCancellationTokenCancels the read.
Returns
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.