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
updatedExportMailboxExportThe export as it should now stand.
expectedStateMailboxExportStateThe state the caller read before deciding.
cancellationTokenCancellationTokenCancels the write.
Returns
Exceptions
- ArgumentNullException
Thrown when
updatedExportis null.