Table of Contents

Constructor MailAttachmentTextPass

Namespace
MailFathom.Application.Emails.AttachmentText
Assembly
MailFathom.Application.dll

MailAttachmentTextPass(IStoredEmailAttachmentTextStore, EmailAttachmentTextDeriver, EmailAttachmentTextBounds, IEmailEmbeddingBacklog, IDerivedWorkGateTelemetry, OptimisticConcurrencyRetryPolicy, AttachmentDerivationSpendGate)

Initializes the pass from the state it walks, the derivation it runs, and the backlog it hands messages to.

public MailAttachmentTextPass(IStoredEmailAttachmentTextStore attachmentTextStore, EmailAttachmentTextDeriver deriver, EmailAttachmentTextBounds bounds, IEmailEmbeddingBacklog embeddingBacklog, IDerivedWorkGateTelemetry gateTelemetry, OptimisticConcurrencyRetryPolicy commitPolicy, AttachmentDerivationSpendGate spendGate)

Parameters

attachmentTextStore IStoredEmailAttachmentTextStore

Reads what is awaiting a reading and stores what one produced.

deriver EmailAttachmentTextDeriver

Reads one message's attachments, outside any transaction.

bounds EmailAttachmentTextBounds

The ceilings one message and one run are read under.

embeddingBacklog IEmailEmbeddingBacklog

Takes each message whose attachments yielded passages on to the embedding worker.

gateTelemetry IDerivedWorkGateTelemetry

Reports which of the classification gate's answers let each message through.

commitPolicy OptimisticConcurrencyRetryPolicy

Commits one message's readings, retrying a conflict with a competing writer.

spendGate AttachmentDerivationSpendGate

Says whether the period still admits reading and describing for this user, and is charged for what it did.

Exceptions

ArgumentNullException

Thrown when any argument is null.