Method ContextForAsync
- Namespace
- MailFathom.Application.Emails.Threads
- Assembly
- MailFathom.Application.dll
ContextForAsync(EmailThreadId?, StoredEmailId, CancellationToken)
Builds what one read email publishes about the conversation it belongs to.
public Task<ReadEmailThread?> ContextForAsync(EmailThreadId? threadId, StoredEmailId storedEmailId, CancellationToken cancellationToken)
Parameters
threadIdEmailThreadId?The conversation the email's row names, or null when it names none.
storedEmailIdStoredEmailIdThe email the read is answering for.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<ReadEmailThread>
The conversation as this email publishes it, or null when the email is in none.