Table of Contents

Method ReadPreviewsAsync

Namespace
MailFathom.Application.Emails.Summaries
Assembly
MailFathom.Application.dll

ReadPreviewsAsync(IReadOnlyList<StoredEmailId>, CancellationToken)

Reads the bounded opening of each named email's text.

Task<IReadOnlyDictionary<StoredEmailId, string>> ReadPreviewsAsync(IReadOnlyList<StoredEmailId> storedEmailIds, CancellationToken cancellationToken)

Parameters

storedEmailIds IReadOnlyList<StoredEmailId>

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

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<IReadOnlyDictionary<StoredEmailId, string>>

The preview of each email that has one, keyed by identity. An email whose text has never been extracted, or whose extraction yielded nothing, is absent rather than present with an empty value.

Remarks

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

Exceptions

ArgumentNullException

Thrown when storedEmailIds is null.