Table of Contents

Interface IThreadStateDeriver

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

Derives where one conversation stands: what was agreed, what is open, and who owes what.

public interface IThreadStateDeriver

Remarks

The one way a conversation becomes a state. An implementation is registered for every deployment, including one that has turned the derivation off — the answer a caller needs is a reason it can act on, and a missing registration would have made every caller carry a null check and decide for itself what an absence meant.

It never throws for a provider that failed. Every way a derivation can come to nothing is a member of ThreadStateWithholding, because the caller's response to each of them is the same shape — leave the conversation outstanding and stop — and an exception would have made an ordinary outage look like a defect in the pass. Caller cancellation is the exception to that and propagates, being the caller withdrawing the work rather than anything about the conversation.

Properties

IsActive

Gets whether this deployment derives a conversation's state at all.

Methods

DeriveAsync(DerivableThread, MailAccountLanguage, CancellationToken)

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