Method ListAsync
- Namespace
- MailFathom.Application.Mail.Export
- Assembly
- MailFathom.Application.dll
ListAsync(MailAccountId, int, CancellationToken)
Reads the account's exports, newest first.
Task<IReadOnlyList<MailboxExport>> ListAsync(MailAccountId account, int limit, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account asked about.
limitintHow many rows to read at most.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<IReadOnlyList<MailboxExport>>
The exports, newest first.
Exceptions
- ArgumentOutOfRangeException
Thrown when
limitis not positive.