Method CountPayloadsAwaitingMoveAsync
- Namespace
- MailFathom.Application.EmailContent.Move
- Assembly
- MailFathom.Application.dll
CountPayloadsAwaitingMoveAsync(CancellationToken)
Counts what the database still holds, across every payload kind.
Task<StoredContentBacklog> CountPayloadsAwaitingMoveAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<StoredContentBacklog>
How many payloads are left and how many bytes they carry.
Remarks
Answered through the same predicate the batch query is narrowed by, so the backlog an operator watches and the work the move would actually do are one number rather than two that drift the first time either learns something. It is the whole deployment's figure rather than the current kind's, because what an operator asks is how much of their mail is still in the database.