Class RecurringSendDeclaration
- Namespace
- MailFathom.Application.Mail.Delivery.Scheduling
- Assembly
- MailFathom.Application.dll
What a dispatch pass needs to know about one declaration, and nothing more.
public sealed record RecurringSendDeclaration : IEquatable<RecurringSendDeclaration>
- Inheritance
-
RecurringSendDeclaration
- Implements
- Inherited Members
Remarks
A pass runs on the job worker's interval and reads every declaration this deployment holds, so what it reads is read constantly. Three values decide an occasion — which declaration, whose mailbox, and how often — and everything else on a declaration belongs to the occasion that produces a message rather than to the decision that an occasion has come.
The recipients are the reason this type exists rather than the declaration itself being read. They are addresses of people other than the mailbox's owner, and loading five hundred declarations' worth of them on every pass would keep personal data moving through a decision that never looks at it. The occasion reads them when it composes, by identifier, which is where they are actually needed.
Constructors
- RecurringSendDeclaration(RecurringSendId, MailAccountId, string)
What a dispatch pass needs to know about one declaration, and nothing more.
Properties
- AccountId
The account every occurrence is submitted through and sent as.
- Id
The declaration the occasion belongs to.
- Schedule
The repetition as it was declared, in the syntax the dispatch mechanism parses.