Table of Contents

Method ReadSummariesAsync

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

ReadSummariesAsync(IReadOnlyList<StoredEmailId>, CancellationToken)

Reads the summaries of the emails one page names.

Task<IReadOnlyDictionary<StoredEmailId, EmailSummary>> ReadSummariesAsync(IReadOnlyList<StoredEmailId> storedEmailIds, CancellationToken cancellationToken)

Parameters

storedEmailIds IReadOnlyList<StoredEmailId>

The emails to read, as one page named them.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<IReadOnlyDictionary<StoredEmailId, EmailSummary>>

The summary of each email the local mailbox copy still holds, keyed by identity.

Remarks

An identity the copy no longer holds is absent from the answer rather than reported, on the same terms FindAsync(StoredEmailId, CancellationToken) answers with nothing: what a gap means belongs to the caller, which knows whether a message that disappeared between two reads is a row to drop or a refusal. The order of the answer means nothing; the caller holds the page whose order does.

Exceptions

ArgumentNullException

Thrown when storedEmailIds is null.