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
attachmentTextStoreIStoredEmailAttachmentTextStoreReads what is awaiting a reading and stores what one produced.
deriverEmailAttachmentTextDeriverReads one message's attachments, outside any transaction.
boundsEmailAttachmentTextBoundsThe ceilings one message and one run are read under.
embeddingBacklogIEmailEmbeddingBacklogTakes each message whose attachments yielded passages on to the embedding worker.
gateTelemetryIDerivedWorkGateTelemetryReports which of the classification gate's answers let each message through.
commitPolicyOptimisticConcurrencyRetryPolicyCommits one message's readings, retrying a conflict with a competing writer.
spendGateAttachmentDerivationSpendGateSays 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.