Table of Contents

Method ReadAsync

Namespace
MailFathom.Application.Accounts.Custody
Assembly
MailFathom.Application.dll

ReadAsync(MailAccountId, CancellationToken)

Reads what one account's custody currently is.

public Task<MailAccountCustodyState?> ReadAsync(MailAccountId account, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<MailAccountCustodyState>

The state, or null where the deployment holds no such account.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller's grant omits mailfathom.admin.read.