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 where the book holds no such person.

Exceptions

PrincipalNotAuthorizedException

Thrown when the read was reached by anything but a caller granted AdminAuditRead.