Table of Contents

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

session IPersistenceSession

The transaction the reading is part of.

storedEmailId StoredEmailId

The email to read.

cancellationToken CancellationToken

Propagates 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.