Method ReadConfirmableAppendsAsync
- Namespace
- MailFathom.Application.Synchronization.Restore
- Assembly
- MailFathom.Application.dll
ReadConfirmableAppendsAsync(MailAccountId, int, CancellationToken)
Reads the appends of one account the source has answered in full and nothing has yet carried.
Task<IReadOnlyList<MailboxRestoreConfirmation>> ReadConfirmableAppendsAsync(MailAccountId account, int maximumRecords, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account.
maximumRecordsintThe most records to read, which is a ceiling rather than a page.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<IReadOnlyList<MailboxRestoreConfirmation>>
The placements, oldest first, bounded by what was asked for.
Remarks
Ordinarily empty, because the pass that recorded a placement carries it in the same run. What it returns is what a pass that ended between the two left behind, and finishing that is the difference between a message whose occurrence was known all along and one an operator has to go and look for.
Exceptions
- ArgumentOutOfRangeException
Thrown when
maximumRecordsis not positive.