Table of Contents

Class RecurringSendJobPayload

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

Points one job at a declaration that a message is sent again on every occasion its schedule names.

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

Remarks

It names the declaration and not the occasion, because a recurring dispatch repeats one piece of work and the occasion is what the schedule decides. Which occasion a run is for is read from the schedule at the instant the work happens, so the document stays the same for the life of the declaration and two instances reaching one occasion compose one message rather than two.

Both properties are MailFathom's own identifiers. The message this declaration repeats is in the content store with every other piece of RFC 822 this system holds, and nothing about it — not a recipient, not a subject — is in the document a queued job is read from.

Properties

AccountId

Gets the account every occurrence is submitted through and sent as.

DeclarationId

Gets the declaration whose occasion has come round.

JobType

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

Methods

For(MailAccountId, RecurringSendId)

Describes one recurring send as the document a job carries.

ToAccountId()

Rebuilds the account identity this payload names.

ToRecurringSendId()

Rebuilds the declaration identity this payload names.