Table of Contents

Class EraseWithdrawnMailFolderMailJobPayload

Namespace
MailFathom.Application.Jobs.Payloads
Assembly
MailFathom.Application.dll

Names one bounded pass over the stored mail of a folder an account no longer declares.

public sealed record EraseWithdrawnMailFolderMailJobPayload : IJobPayload, IEquatable<EraseWithdrawnMailFolderMailJobPayload>
Inheritance
EraseWithdrawnMailFolderMailJobPayload
Implements
Inherited Members

Remarks

The alias is part of the identity as well as of the work, because a deletion of a second folder of the same account is a job of its own rather than a duplicate of a pass that is already running for the first. That is the opposite of what a held account's erasure needs, where one pass reaches every erased folder at once: a withdrawn folder's mail is selected by its alias, so each folder is swept on its own.

Properties

Account

Gets the account whose folder the pass sweeps.

AccountId

Gets the account's generated identifier.

Folder

Gets the folder the pass sweeps.

FolderAlias

Gets MailFathom's own name for the folder whose deletion asked for the work.

JobType

Gets the job type this payload is the one contract of.

Pass

Gets how many passes preceded this one for the same deletion.

Methods

For(MailAccountId, MailFolderAlias)

States the first pass a deletion owes.

Next()

States the pass after this one.

ToIdempotencyKey()

Composes the identity that makes one pass run once.