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
storedEmailIdsIReadOnlyList<StoredEmailId>The emails to read enrichment for, as one page named them.
cancellationTokenCancellationTokenPropagates 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
storedEmailIdsis null.