Method DeriveAsync
- Namespace
- MailFathom.Application.Emails.Enrichment
- Assembly
- MailFathom.Application.dll
DeriveAsync(EnrichableEmail, MailAccountLanguage, CancellationToken)
Derives one message's marks, written in the language the mailbox they were found in is read in.
Task<EmailEnrichmentDerivation> DeriveAsync(EnrichableEmail email, MailAccountLanguage language, CancellationToken cancellationToken)
Parameters
emailEnrichableEmailThe message and the passages the derivation reads.
languageMailAccountLanguageThe language every sentence the derivation produces is written in.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<EmailEnrichmentDerivation>
The marks that were settled, or the reason nothing was derived this time.
Remarks
The language is the mailbox's rather than the message's, and it is an argument rather than a property of EnrichableEmail 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
emailis null.- OperationCanceledException
Thrown when the caller cancels.