Constructor RecurringSendOccurrenceHandler
- Namespace
- MailFathom.Application.Mail.Delivery.Scheduling
- Assembly
- MailFathom.Application.dll
RecurringSendOccurrenceHandler(IRecurringSendStore, IOutgoingEmailStore, IEmailContentStore, IAuthoredEmailComposer, MailOutbox, OptimisticConcurrencyRetryPolicy, TimeProvider)
Initializes the handler from the declaration it reads and the outbox it writes into.
public RecurringSendOccurrenceHandler(IRecurringSendStore recurringSends, IOutgoingEmailStore outgoingEmails, IEmailContentStore contentStore, IAuthoredEmailComposer composer, MailOutbox outbox, OptimisticConcurrencyRetryPolicy retryPolicy, TimeProvider timeProvider)
Parameters
recurringSendsIRecurringSendStoreReads the declaration and records the occasion it has now produced a message for.
outgoingEmailsIOutgoingEmailStoreAnswers what became of the message the previous occasion produced.
contentStoreIEmailContentStoreHolds the draft this occasion's message is composed from.
composerIAuthoredEmailComposerGives this occasion's message an identity and a date of its own.
outboxMailOutboxWrites the occurrence down and says the account has something to send.
retryPolicyOptimisticConcurrencyRetryPolicyCommits the occasion this declaration has now reached.
timeProviderTimeProviderSays which occasion has come round.
Exceptions
- ArgumentNullException
Thrown when a collaborator is null.