Constructor EmbeddingStatusReader
- Namespace
- MailFathom.Application.Emails.Embeddings.Administration
- Assembly
- MailFathom.Application.dll
EmbeddingStatusReader(IEmbeddingGenerationStore, IEmbeddingWorkloadReader, EmbeddingSpendGate, IAiProviderHealthReader, EmbeddingBackfillSchedule, AttachmentDerivationStatusReader, ReplicaIdentity, AccessAuthorization)
Initializes a new reader over the state one status answer is composed from.
public EmbeddingStatusReader(IEmbeddingGenerationStore generationStore, IEmbeddingWorkloadReader workloadReader, EmbeddingSpendGate spendGate, IAiProviderHealthReader providerHealth, EmbeddingBackfillSchedule backfillSchedule, AttachmentDerivationStatusReader attachmentDerivation, ReplicaIdentity replica, AccessAuthorization authorization)
Parameters
generationStoreIEmbeddingGenerationStoreReads which generations this instance holds.
workloadReaderIEmbeddingWorkloadReaderCounts what each generation still owes.
spendGateEmbeddingSpendGateReads where the budget period stands.
providerHealthIAiProviderHealthReaderReports what the last call to the embedding provider established.
backfillScheduleEmbeddingBackfillScheduleReports when the walk's next pass is due.
attachmentDerivationAttachmentDerivationStatusReaderReports how far reading attachments has come and what its own periods have consumed.
replicaReplicaIdentityNames the replica answering, so the two readings only one process can make are attributable to it.
authorizationAccessAuthorizationAnswers which principal reached this use case.
Exceptions
- ArgumentNullException
Thrown when any argument is null.