Table of Contents

Class EraseLocalMailFolderMailJobPayload

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

Names one bounded pass over the mail of a held account's erased folders.

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

Remarks

A pass erases the mail of every erased folder of the account rather than only of the folder named, so a pass owed by an earlier erasure is finished by whichever pass runs next. The folder is part of the identity only so that a second erasure of the same account is a job of its own rather than a duplicate of a pass that already ran.

Properties

Account

Gets the account, named by its generated identifier.

AccountId

Gets the account's generated identifier.

FolderId

Gets the folder whose erasure 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 erasure.

Methods

For(MailAccountId, LocalMailFolderId)

States the first pass an erasure owes.

Next()

States the pass after this one.

ToIdempotencyKey()

Composes the identity that makes one pass run once.