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
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 can answer, which is a property of the store rather than of this method.