Method Create
- Namespace
- MailFathom.Domain.Spam
- Assembly
- MailFathom.Domain.dll
Create(SpamSignalKind, string, string?, SpamSignalProvenance)
Records one observed fact.
public static SpamSignal Create(SpamSignalKind kind, string name, string? observation, SpamSignalProvenance provenance)
Parameters
kindSpamSignalKindWhat kind of fact it is.
namestringThe name of the observed property.
observationstringWhat was observed, or null when the fact is the observation itself.
provenanceSpamSignalProvenanceWhere it was read from.
Returns
- SpamSignal
The signal, with the observation shortened to MaximumObservationLength when the source wrote a longer one.
Exceptions
- ArgumentNullException
Thrown when
provenanceis null.- ArgumentException
Thrown when the name is blank, over-long, or carries a control character.
- ArgumentOutOfRangeException
Thrown when
kindis not a defined member.