Method Admit
- Namespace
- MailFathom.Application.Spam.Gating
- Assembly
- MailFathom.Application.dll
Admit(DerivedWorkCandidate)
Decides what classification says about one occurrence right now.
public DerivedWorkAdmission Admit(DerivedWorkCandidate candidate)
Parameters
candidateDerivedWorkCandidateThe four facts an admission is decided from.
Returns
- DerivedWorkAdmission
The admission, which only Admitted and the two released answers permit derived work.
Exceptions
- ArgumentNullException
Thrown when
candidateis null.
Admit(DerivedWorkAdmissionTerms, DerivedWorkCandidate)
Decides what one occurrence's admission is under terms already read.
public static DerivedWorkAdmission Admit(DerivedWorkAdmissionTerms terms, DerivedWorkCandidate candidate)
Parameters
termsDerivedWorkAdmissionTermsThe snapshot the decision is made under.
candidateDerivedWorkCandidateThe four facts an admission is decided from.
Returns
- DerivedWorkAdmission
The admission.
Remarks
The order of the questions is the order of what each one settles. Placement is asked before the record, because mail already sitting in the junk folder is junk with nothing having scored it and a reversal has to be able to undo a verdict that scoring reached. Scope is asked before the wait, because a folder no classification runs over is one whose mail would otherwise wait for a verdict nothing is going to produce.
Exceptions
- ArgumentNullException
Thrown when either argument is null.