Table of Contents

Method ReadFragmentsAsync

Namespace
MailFathom.Application.Discovery.Citations
Assembly
MailFathom.Application.dll

ReadFragmentsAsync(StoredEmailId, IReadOnlyCollection<EmailChunkId>, CancellationToken)

Reads the passages one message holds among those named.

Task<IReadOnlyDictionary<EmailChunkId, CitedFragment>> ReadFragmentsAsync(StoredEmailId storedEmailId, IReadOnlyCollection<EmailChunkId> fragments, CancellationToken cancellationToken)

Parameters

storedEmailId StoredEmailId

The message the passages must belong to.

fragments IReadOnlyCollection<EmailChunkId>

The passages to read, which is never empty.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<IReadOnlyDictionary<EmailChunkId, CitedFragment>>

The passages found, keyed by their identifiers, holding no entry for one the store does not have.

Exceptions

ArgumentNullException

Thrown when fragments is null.