Table of Contents

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

kind SpamSignalKind

What kind of fact it is.

name string

The name of the observed property.

observation string

What was observed, or null when the fact is the observation itself.

provenance SpamSignalProvenance

Where 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 provenance is null.

ArgumentException

Thrown when the name is blank, over-long, or carries a control character.

ArgumentOutOfRangeException

Thrown when kind is not a defined member.