Table of Contents

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

recurringSends IRecurringSendStore

Reads the declaration and records the occasion it has now produced a message for.

outgoingEmails IOutgoingEmailStore

Answers what became of the message the previous occasion produced.

contentStore IEmailContentStore

Holds the draft this occasion's message is composed from.

composer IAuthoredEmailComposer

Gives this occasion's message an identity and a date of its own.

outbox MailOutbox

Writes the occurrence down and says the account has something to send.

retryPolicy OptimisticConcurrencyRetryPolicy

Commits the occasion this declaration has now reached.

timeProvider TimeProvider

Says which occasion has come round.

Exceptions

ArgumentNullException

Thrown when a collaborator is null.