Table of Contents

Method ReadEnrichmentsAsync

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

ReadEnrichmentsAsync(IReadOnlyList<StoredEmailId>, CancellationToken)

Reads what was derived about each named email.

Task<IReadOnlyDictionary<StoredEmailId, EmailEnrichment>> ReadEnrichmentsAsync(IReadOnlyList<StoredEmailId> storedEmailIds, CancellationToken cancellationToken)

Parameters

storedEmailIds IReadOnlyList<StoredEmailId>

The emails to read enrichment for, as one page named them.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<IReadOnlyDictionary<StoredEmailId, EmailEnrichment>>

The enrichment of each email that has one, keyed by identity. An email no derivation has reached is absent, which is what a client draws as not derived yet; an email whose derivation found nothing to say is present with no marks.

Remarks

The order of the answer means nothing; the caller holds the page whose order does.

Exceptions

ArgumentNullException

Thrown when storedEmailIds is null.