Table of Contents

Class EmailEnrichment

Namespace
MailFathom.Application.Emails.Enrichment
Assembly
MailFathom.Application.dll

What this deployment derived about one message, once, and wrote down.

public sealed record EmailEnrichment : IEquatable<EmailEnrichment>
Inheritance
EmailEnrichment
Implements
Inherited Members

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*.

Constructors

EmailEnrichment(StoredEmailId, IReadOnlyList<EmailEnrichmentMark>, DateTimeOffset)

What this deployment derived about one message, once, and wrote down.

Properties

DerivedAt

When the derivation ran.

Marks

What was derived, at most one mark per aspect, and empty where the derivation found nothing to say.

StoredEmailId

The message the derivation is about.

Methods

MarkOf(EmailEnrichmentAspect)

Gets the mark of one aspect, or null where the derivation produced none.