Constructor EmailSpamClassificationHandler
- Namespace
- MailFathom.Application.Spam
- Assembly
- MailFathom.Application.dll
EmailSpamClassificationHandler(IClassifiableEmailReader, IEmailSpamClassificationStore, EmailSpamClassifier, SpamActionRecorder)
Initializes the handler over the work one job describes.
public EmailSpamClassificationHandler(IClassifiableEmailReader emails, IEmailSpamClassificationStore classifications, EmailSpamClassifier classifier, SpamActionRecorder actionRecorder)
Parameters
emailsIClassifiableEmailReaderTurns the occurrence the payload names into the local email it was stored as.
classificationsIEmailSpamClassificationStoreReads the verdict an earlier attempt recorded, so a repeated attempt still acts on it.
classifierEmailSpamClassifierReaches a verdict about the occurrence and records it.
actionRecorderSpamActionRecorderWrites down whatever the operator's switches ask a verdict to do to the mailbox.
Exceptions
- ArgumentNullException
Thrown when an argument is null.