Method FindAsync
- Namespace
- MailFathom.Application.Contacts
- Assembly
- MailFathom.Application.dll
FindAsync(ContactId, CancellationToken)
Reads one contact by the identity the book gave it.
public Task<Contact?> FindAsync(ContactId contactId, CancellationToken cancellationToken)
Parameters
contactIdContactIdThe contact to read.
cancellationTokenCancellationTokenCancels the read.
Returns
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller does not hold the reading grant.