Method ReadOutstandingAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Drafts
- Assembly
- MailFathom.Application.dll
ReadOutstandingAsync(MailAccountId, int, CancellationToken)
Reads the drafts of one account that still owe the mail server something.
Task<IReadOnlyList<MailDraftRecord>> ReadOutstandingAsync(MailAccountId accountId, int maxCount, CancellationToken cancellationToken)
Parameters
accountIdMailAccountIdThe account whose drafts are read.
maxCountintThe greatest number of drafts to answer with.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<IReadOnlyList<MailDraftRecord>>
The drafts with outstanding work, oldest revision first, bounded by
maxCount.
Remarks
It is the resume path. An account whose drafts are all settled answers nothing, so a pass over it costs one bounded query rather than a session.