Method FindThreadedEmailAsync
- Namespace
- MailFathom.Application.Emails.Threads
- Assembly
- MailFathom.Application.dll
FindThreadedEmailAsync(IPersistenceSession, StoredEmailId, CancellationToken)
Reads one stored email as assembly sees it, or nothing when it is not stored.
Task<ThreadedEmail?> FindThreadedEmailAsync(IPersistenceSession session, StoredEmailId storedEmailId, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe transaction the reading is part of.
storedEmailIdStoredEmailIdThe email to read.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<ThreadedEmail>
The email, or null when nothing holds it.
Remarks
What reads it is the walk that refuses to close a cycle in the reply relation.