Constructor ThreadStateDerivationPass
- Namespace
- MailFathom.Application.Emails.ThreadStates
- Assembly
- MailFathom.Application.dll
ThreadStateDerivationPass(IStoredThreadStateStore, IThreadStateDeriver, IMailAccountLanguages, SensitiveContentEgressGuard, OptimisticConcurrencyRetryPolicy, TimeProvider)
Initializes the pass from the state it walks and the derivation it asks.
public ThreadStateDerivationPass(IStoredThreadStateStore stateStore, IThreadStateDeriver deriver, IMailAccountLanguages accountLanguages, SensitiveContentEgressGuard egressGuard, OptimisticConcurrencyRetryPolicy commitPolicy, TimeProvider timeProvider)
Parameters
stateStoreIStoredThreadStateStoreReads which conversations are awaiting a state and writes down what one derivation produced.
deriverIThreadStateDeriverDerives one conversation's state, in whichever state the deployment left it.
accountLanguagesIMailAccountLanguagesAnswers which language the account's mail is read in.
egressGuardSensitiveContentEgressGuardHolds the posture the conversation is scanned under while the pass runs.
commitPolicyOptimisticConcurrencyRetryPolicyCommits one conversation's record, retrying a conflict with a competing writer.
timeProviderTimeProviderReads when a derivation ran.
Exceptions
- ArgumentNullException
Thrown when any argument is null.