Table of Contents

Method EraseAsync

Namespace
MailFathom.Application.Folders
Assembly
MailFathom.Application.dll

EraseAsync(MailAccountId, MailFolderAlias, CancellationToken)

Erases one bounded pass of what is stored for a folder nothing mirrors any more.

public Task<MailFolderMirrorErasure> EraseAsync(MailAccountId accountId, MailFolderAlias folderAlias, CancellationToken cancellationToken)

Parameters

accountId MailAccountId

The account the folder belongs to.

folderAlias MailFolderAlias

MailFathom's own name for the folder.

cancellationToken CancellationToken

Cancels the pass before or during its single transaction.

Returns

Task<MailFolderMirrorErasure>

What this pass erased, and whether the folder still holds stored mail.

Exceptions

PersistenceConcurrencyConflictException

Thrown when a competing writer wins a race the bounded retries could not resolve.