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
threadDerivableThreadThe conversation and the messages the derivation reads.
languageMailAccountLanguageThe language every statement the derivation produces is written in.
cancellationTokenCancellationTokenPropagates 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
threadis null.- OperationCanceledException
Thrown when the caller cancels.