Method Create
- Namespace
- MailFathom.Domain.Spam
- Assembly
- MailFathom.Domain.dll
Create(bool, double?)
Derives the identity of the settings a classification is reached under.
public static SpamClassificationProfile Create(bool usesScanner, double? scannerThreshold)
Parameters
usesScannerboolWhether a configured scanner is consulted after the deterministic stage.
scannerThresholddouble?The score a scanner's verdict is judged by, or null to keep the scanner's own.
Returns
- SpamClassificationProfile
The profile those settings are known by.
Remarks
A threshold left to the scanner and a threshold configured to whatever the scanner already uses are deliberately different profiles. What the scanner's own threshold is, is not something MailFathom knows before it has asked, so treating the two as one would mean claiming an equality that cannot be established.
Exceptions
- ArgumentOutOfRangeException
Thrown when
scannerThresholdis not a finite number.