Table of Contents

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

threadId EmailThreadId?

The conversation the email's row names, or null when it names none.

storedEmailId StoredEmailId

The email the read is answering for.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<ReadEmailThread>

The conversation as this email publishes it, or null when the email is in none.