Table of Contents

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

address EmailAddress

The address to resolve, in its comparison form.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<Contact>

The contact, or null where nobody in the book holds it.

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.