Interface ICitedFragmentReader
- Namespace
- MailFathom.Application.Discovery.Citations
- Assembly
- MailFathom.Application.dll
Reads the persisted passages of one message that a set of citations names.
public interface ICitedFragmentReader
Remarks
The message is a parameter rather than something the passage identifiers are looked up across, and that is the port's own safety rather than a convenience: a passage is only ever returned for the message it hangs on, so a citation naming a passage of somebody else's mail reads nothing however it was composed. The caller establishes that the message may be read before it asks.
A passage the identifiers name and the store no longer holds is absent from the answer rather than reported, because re-chunking replaces a changed message's rows and the caller has one thing to say about every way a passage can be gone. Nothing here reaches a mail server: a citation is followed through what chunking already derived.
Methods
- ReadFragmentsAsync(StoredEmailId, IReadOnlyCollection<EmailChunkId>, CancellationToken)
Reads the passages one message holds among those named.