Constructor OccurrenceSpamClassificationHandler
- Namespace
- MailFathom.Application.Spam
- Assembly
- MailFathom.Application.dll
OccurrenceSpamClassificationHandler(IClassifiableEmailReader, EmailSpamClassificationHandler)
Initializes the handler over the resolution and the classification it hands the result to.
public OccurrenceSpamClassificationHandler(IClassifiableEmailReader emails, EmailSpamClassificationHandler storedEmailClassification)
Parameters
emailsIClassifiableEmailReaderTurns the occurrence the payload names into the stored email it was stored as.
storedEmailClassificationEmailSpamClassificationHandlerClassifies the stored email and acts on the verdict.
Exceptions
- ArgumentNullException
Thrown when an argument is null.