Method SaveProgressAsync
- Namespace
- MailFathom.Application.Mail.Export
- Assembly
- MailFathom.Application.dll
SaveProgressAsync(MailboxExportId, long, long, CancellationToken)
Records how far the archive has got, without deciding anything about the export's state.
Task SaveProgressAsync(MailboxExportId exportId, long messageCount, long byteCount, CancellationToken cancellationToken)
Parameters
exportIdMailboxExportIdThe export being written.
messageCountlongHow many messages have reached the archive.
byteCountlongHow many bytes of stored mail they carried.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task
A task that completes once the counts are durable.
Remarks
A member of its own because it is the one write a cancellation must not lose to. It applies only while the export is running, so a progress write racing an operator's cancellation leaves the cancellation standing.