Method Create
- Namespace
- MailFathom.Domain.Spam
- Assembly
- MailFathom.Domain.dll
Create(double, double)
Records a score against the threshold it was judged by.
public static SpamAssessment Create(double score, double threshold)
Parameters
scoredoubleThe score reached.
thresholddoubleThe score at or above which the message counts as spam.
Returns
- SpamAssessment
The assessment.
Remarks
Both are refused unless finite. A scanner answering with a NaN would otherwise produce a record whose comparison against the threshold is false whichever way it is written, which reads as clean mail rather than as a scanner that failed.
Exceptions
- ArgumentOutOfRangeException
Thrown when either value is not a finite number.