Method FindByAddressAsync
- Namespace
- MailFathom.Application.Contacts
- Assembly
- MailFathom.Application.dll
FindByAddressAsync(EmailAddress, CancellationToken)
Reads the person who uses one address.
public Task<Contact?> FindByAddressAsync(EmailAddress address, CancellationToken cancellationToken)
Parameters
addressEmailAddressThe address to resolve, in its comparison form.
cancellationTokenCancellationTokenCancels the read.
Returns
Remarks
Resolving an address to a person is the most pointed read the book answers, which is why it asks for the same grant the listing does rather than a weaker one.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the read was reached by anything but a caller granted AdminAuditRead.