Constructor EmailEnrichment
- Namespace
- MailFathom.Application.Emails.Enrichment
- Assembly
- MailFathom.Application.dll
EmailEnrichment(StoredEmailId, IReadOnlyList<EmailEnrichmentMark>, DateTimeOffset)
What this deployment derived about one message, once, and wrote down.
public EmailEnrichment(StoredEmailId StoredEmailId, IReadOnlyList<EmailEnrichmentMark> Marks, DateTimeOffset DerivedAt)
Parameters
StoredEmailIdStoredEmailIdThe message the derivation is about.
MarksIReadOnlyList<EmailEnrichmentMark>What was derived, at most one mark per aspect, and empty where the derivation found nothing to say.
DerivedAtDateTimeOffsetWhen the derivation ran.
Remarks
Derived on the arrival pipeline and stored, so a list page carries it without a model call while somebody scrolls. That is the whole reason it is a record rather than a call: a page of fifty rows would otherwise be fifty derivations per scroll, at a cost nobody would run.
An empty set of marks is a real outcome and not a failure. It says a derivation ran and found nothing worth putting on the row — a delivery receipt, a mailing list footer — and storing it is what takes the message out of the queue so the same nothing is not paid for again. A message no derivation has reached carries no record at all, which is the state a client draws as *not derived yet* rather than as *nothing to say*.