Method ListAsync
- Namespace
- MailFathom.Application.Mail.Export
- Assembly
- MailFathom.Application.dll
ListAsync(MailAccountId, CancellationToken)
Reads the exports this account has, newest first.
public Task<IReadOnlyList<MailboxExport>> ListAsync(MailAccountId account, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account asked about.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<IReadOnlyList<MailboxExport>>
The exports.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller does not hold the export permission.