Table of Contents

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

session IPersistenceSession

The transaction the read joined.

account MailAccountId

The account.

saved IReadOnlyCollection<LocalMailFolder>

The folders to insert or replace.

erased IReadOnlyCollection<LocalMailFolderId>

The folders to erase, which leave every listing when this commits.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task

Exceptions

PersistenceConcurrencyConflictException

Thrown at commit when another edit changed the hierarchy since the read.