Table of Contents

Class WithdrawnMailFolderMailErasureHandler

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

Erases the stored mail of a folder an account no longer declares, a bounded pass at a time.

public sealed class WithdrawnMailFolderMailErasureHandler : IJobHandler
Inheritance
WithdrawnMailFolderMailErasureHandler
Implements
Inherited Members

Remarks

It runs the same erasure an operator's own command runs and under the same bound, rather than a second path that disposes of mail: one write that removes stored rows is easier to reason about than two, and the bound is the one the backward pass over stored mail already carries, so one pass is one transaction of a known size however much the folder held.

Constructors

WithdrawnMailFolderMailErasureHandler(IStoredMailFolderMirrorStore, OptimisticConcurrencyRetryPolicy, MailboxSynchronizationOptions, IJobStore)

Initializes a new instance of the WithdrawnMailFolderMailErasureHandler class.

Properties

JobType

Gets the job type this handler runs, which is also the contract its payload arrives under.

Methods

RunAsync(IJobPayload, CancellationToken)

Runs the work the payload describes.