Table of Contents

Class ExportMailboxJobPayload

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

Names the one export whose archive this work writes.

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

Remarks

The export's identity and the account, and nothing else. What the export covers, how large it may be, and where it stands are all on the export's own record, which the work reads when it starts — so a payload written by one build and claimed by another carries no copy of a decision that may have moved on, and a cancellation an operator wrote after the job was queued is seen by the attempt rather than argued with.

The identity is the whole of the idempotency key, which is what makes the work run once: an export is recorded before the job is queued, so there is exactly one job per export however many times an enqueue is repeated.

Properties

Account

Gets the account whose mailbox is carried out.

AccountId

Gets the account's generated identifier.

Export

Gets the export the work belongs to.

ExportId

Gets the export whose archive is written.

JobType

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

Methods

For(MailAccountId, MailboxExportId)

States the work one recorded export owes.

ToIdempotencyKey()

Composes the identity that makes one export's archive be written once.