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
settingsReaderISpamActionSettingsReaderAnswers what the operator asked to happen to junk.
occurrencesISpamActionOccurrenceReaderReads where the classified email is and whether it is already read.
recordsIMailboxMutationRecordStoreOpens the durable record each change is carried by.
destinationsMailboxDestinationResolverTurns the configured junk folder into the folder on the server it currently names.
deleteDispositionsIAuthoredDeleteEmailDispositionReaderAnswers what the account keeps locally of mail that leaves the mirror for good.
retryPolicyOptimisticConcurrencyRetryPolicyCommits the records from a fresh read when a concurrent write conflicts.
Exceptions
- ArgumentNullException
Thrown when a collaborator is null.