Table of Contents

Method SaveAsync

Namespace
MailFathom.Application.Mail.Export
Assembly
MailFathom.Application.dll

SaveAsync(MailboxExport, MailboxExportState, CancellationToken)

Writes the export back, but only while it is still in the state the caller decided from.

Task<bool> SaveAsync(MailboxExport updatedExport, MailboxExportState expectedState, CancellationToken cancellationToken)

Parameters

updatedExport MailboxExport

The export as it should now stand.

expectedState MailboxExportState

The state the caller read before deciding.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<bool>

true when the write applied; false when the export had already moved on.

Exceptions

ArgumentNullException

Thrown when updatedExport is null.