Class HeldSendJobPayload
- Namespace
- MailFathom.Application.Jobs
- Assembly
- MailFathom.Application.dll
Points one job at a message already written down and waiting for the time it was written to leave at.
public sealed record HeldSendJobPayload : IJobPayload, IEquatable<HeldSendJobPayload>
- Inheritance
-
HeldSendJobPayload
- Implements
- Inherited Members
Remarks
Both properties are MailFathom's own identifiers: the deployment's configured name for a mailbox, and the surrogate its own outgoing record carries. Nothing about the message is here — no recipient, no subject, and nothing that could become one — because the message itself is already durable and this job only says that its moment has come.
The record is named as well as the account, although what the work does is reach the account's outbox. It is what makes a queued job readable — an operator asking why a message has not left reads which message this job is for — and it is what lets the work stand down for a send that was cancelled while it was held.
Properties
- AccountId
Gets the account whose outbox holds the message.
- JobType
Gets the job type this payload is the one contract of.
- OutgoingRecordId
Gets the outgoing record the message was written down as.
Methods
- For(MailAccountId, OutgoingEmailId)
Describes one held send as the document a job carries.
- ToAccountId()
Rebuilds the account identity this payload names.
- ToOutgoingEmailId()
Rebuilds the outgoing record identity this payload names.