Constructor RecurringSendDeclaration
- Namespace
- MailFathom.Application.Mail.Delivery.Scheduling
- Assembly
- MailFathom.Application.dll
RecurringSendDeclaration(RecurringSendId, MailAccountId, string)
What a dispatch pass needs to know about one declaration, and nothing more.
public RecurringSendDeclaration(RecurringSendId Id, MailAccountId AccountId, string Schedule)
Parameters
IdRecurringSendIdThe declaration the occasion belongs to.
AccountIdMailAccountIdThe account every occurrence is submitted through and sent as.
SchedulestringThe repetition as it was declared, in the syntax the dispatch mechanism parses.
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.