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
accountMailAccountIdThe account.
cancellationTokenCancellationTokenPropagates 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.