Table of Contents

Method DeriveAsync

Namespace
MailFathom.Application.Emails.ThreadStates
Assembly
MailFathom.Application.dll

DeriveAsync(DerivableThread, MailAccountLanguage, CancellationToken)

Derives one conversation's state, written in the language the mailbox it was derived from is read in.

Task<ThreadStateDerivation> DeriveAsync(DerivableThread thread, MailAccountLanguage language, CancellationToken cancellationToken)

Parameters

thread DerivableThread

The conversation and the messages the derivation reads.

language MailAccountLanguage

The language every statement the derivation produces is written in.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<ThreadStateDerivation>

The statements that were settled, or the reason nothing was derived this time.

Remarks

The language is the mailbox's rather than the conversation's, and it is an argument rather than a property of DerivableThread because it is a fact about which mailbox the derivation is of. One derivation is what every user assigned that mailbox reads, and what the record carries stays what a derivation reads, which is what keeps both the person and the mailbox out of the text sent to a provider.

Exceptions

ArgumentNullException

Thrown when thread is null.

OperationCanceledException

Thrown when the caller cancels.