Method SaveAsync
- Namespace
- MailFathom.Application.Folders.Local
- Assembly
- MailFathom.Application.dll
SaveAsync(IPersistenceSession, MailAccountId, IReadOnlyCollection<LocalMailFolder>, IReadOnlyCollection<LocalMailFolderId>, CancellationToken)
Writes what an edit decided.
Task SaveAsync(IPersistenceSession session, MailAccountId account, IReadOnlyCollection<LocalMailFolder> saved, IReadOnlyCollection<LocalMailFolderId> erased, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe transaction the read joined.
accountMailAccountIdThe account.
savedIReadOnlyCollection<LocalMailFolder>The folders to insert or replace.
erasedIReadOnlyCollection<LocalMailFolderId>The folders to erase, which leave every listing when this commits.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
Exceptions
- PersistenceConcurrencyConflictException
Thrown at commit when another edit changed the hierarchy since the read.