Interface IStoredEmailSummaryReader
- Namespace
- MailFathom.Application.Emails.Summaries
- Assembly
- MailFathom.Application.dll
Reads one locally stored email's summary by its stable local identity.
public interface IStoredEmailSummaryReader
Remarks
The port is separate from IStoredEmailTimelineReader because the two operations are asked different questions and are indexed differently: one walks a filtered timeline in keyset order, the other looks one row up by primary key. Folding the lookup into the paging contract would mean expressing an identity as a filter, and every caller of the lookup would then have to be trusted not to page.
It returns the same EmailSummary projection a listing does, and for the same reason: the query names the columns a summary publishes and cannot reach the stored raw MIME, which is a privacy control before it is a performance one. The content itself is read through its own port by a caller that has established it may.
Methods
- FindAsync(StoredEmailId, CancellationToken)
Finds one stored email.