Table of Contents

Constructor EmbeddingStatusReader

Namespace
MailFathom.Application.Emails.Embeddings.Administration
Assembly
MailFathom.Application.dll

EmbeddingStatusReader(IEmbeddingGenerationStore, IEmbeddingWorkloadReader, EmbeddingSpendGate, IAiProviderHealthReader, EmbeddingBackfillSchedule, 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, AccessAuthorization authorization)

Parameters

generationStore IEmbeddingGenerationStore

Reads which generations this instance holds.

workloadReader IEmbeddingWorkloadReader

Counts what each generation still owes.

spendGate EmbeddingSpendGate

Reads where the budget period stands.

providerHealth IAiProviderHealthReader

Reports what the last call to the embedding provider established.

backfillSchedule EmbeddingBackfillSchedule

Reports when the walk's next pass is due.

authorization AccessAuthorization

Answers which principal reached this use case.

Exceptions

ArgumentNullException

Thrown when any argument is null.