Table of Contents

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

stateStore IStoredThreadStateStore

Reads which conversations are awaiting a state and writes down what one derivation produced.

deriver IThreadStateDeriver

Derives one conversation's state, in whichever state the deployment left it.

accountLanguages IMailAccountLanguages

Answers which language the account's mail is read in.

egressGuard SensitiveContentEgressGuard

Holds the posture the conversation is scanned under while the pass runs.

commitPolicy OptimisticConcurrencyRetryPolicy

Commits one conversation's record, retrying a conflict with a competing writer.

timeProvider TimeProvider

Reads when a derivation ran.

Exceptions

ArgumentNullException

Thrown when any argument is null.