Constructor SpamActionRecorder
- Namespace
- MailFathom.Application.Spam.Actions
- Assembly
- MailFathom.Application.dll
SpamActionRecorder(ISpamActionSettingsReader, ISpamActionOccurrenceReader, IMailboxMutationRecordStore, MailboxChangeSubmission, MailboxDestinationResolver, IAuthoredDeleteEmailDispositionReader, OptimisticConcurrencyRetryPolicy)
Initializes the use case from the decisions it has to read and the submission it writes through.
public SpamActionRecorder(ISpamActionSettingsReader settingsReader, ISpamActionOccurrenceReader occurrences, IMailboxMutationRecordStore records, MailboxChangeSubmission submission, MailboxDestinationResolver destinations, IAuthoredDeleteEmailDispositionReader deleteDispositions, OptimisticConcurrencyRetryPolicy retryPolicy)
Parameters
settingsReaderISpamActionSettingsReaderAnswers what the message's account asked to happen to the junk in it.
occurrencesISpamActionOccurrenceReaderReads where the classified email is and whether it is already read.
recordsIMailboxMutationRecordStoreAnswers whether this feature has already asked for a message to be filed.
submissionMailboxChangeSubmissionRecords each change, or commits it where the account is held.
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 changes from a fresh read when a concurrent write conflicts.
Exceptions
- ArgumentNullException
Thrown when a collaborator is null.