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
storedEmailIdStoredEmailIdThe message the passages must belong to.
fragmentsIReadOnlyCollection<EmailChunkId>The passages to read, which is never empty.
cancellationTokenCancellationTokenPropagates 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
fragmentsis null.