Table of Contents

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

contactId ContactId

The contact to read.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<Contact>

The contact, or null when the book holds none.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller does not hold the reading grant.