Table of Contents

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

exportId MailboxExportId

The export being written.

messageCount long

How many messages have reached the archive.

byteCount long

How many bytes of stored mail they carried.

cancellationToken CancellationToken

Cancels 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.