Table of Contents

Constructor SpamActionRecorder

Namespace
MailFathom.Application.Spam.Actions
Assembly
MailFathom.Application.dll

SpamActionRecorder(ISpamActionSettingsReader, ISpamActionOccurrenceReader, IMailboxMutationRecordStore, MailboxDestinationResolver, IAuthoredDeleteEmailDispositionReader, OptimisticConcurrencyRetryPolicy)

Initializes the use case from the decisions it has to read and the record it writes.

public SpamActionRecorder(ISpamActionSettingsReader settingsReader, ISpamActionOccurrenceReader occurrences, IMailboxMutationRecordStore records, MailboxDestinationResolver destinations, IAuthoredDeleteEmailDispositionReader deleteDispositions, OptimisticConcurrencyRetryPolicy retryPolicy)

Parameters

settingsReader ISpamActionSettingsReader

Answers what the operator asked to happen to junk.

occurrences ISpamActionOccurrenceReader

Reads where the classified email is and whether it is already read.

records IMailboxMutationRecordStore

Opens the durable record each change is carried by.

destinations MailboxDestinationResolver

Turns the configured junk folder into the folder on the server it currently names.

deleteDispositions IAuthoredDeleteEmailDispositionReader

Answers what the account keeps locally of mail that leaves the mirror for good.

retryPolicy OptimisticConcurrencyRetryPolicy

Commits the records from a fresh read when a concurrent write conflicts.

Exceptions

ArgumentNullException

Thrown when a collaborator is null.