Constructor EmbeddingReindexCancellation
- Namespace
- MailFathom.Application.Emails.Embeddings.Generations
- Assembly
- MailFathom.Application.dll
EmbeddingReindexCancellation(IEmbeddingGenerationStore, IEmbeddingProfileVectorIndex, OptimisticConcurrencyRetryPolicy, EmbeddingBackfillSchedule, AccessAuthorization)
Initializes a new cancellation.
public EmbeddingReindexCancellation(IEmbeddingGenerationStore generationStore, IEmbeddingProfileVectorIndex vectorIndex, OptimisticConcurrencyRetryPolicy concurrencyRetryPolicy, EmbeddingBackfillSchedule backfillSchedule, AccessAuthorization authorization)
Parameters
generationStoreIEmbeddingGenerationStoreReads which generation is being built and abandons it.
vectorIndexIEmbeddingProfileVectorIndexRemoves the approximate index the abandoned generation would have been searched through.
concurrencyRetryPolicyOptimisticConcurrencyRetryPolicyCommits the transition, retrying a conflict with a competing writer.
backfillScheduleEmbeddingBackfillScheduleBrings the next upkeep pass forward, which is the pass that removes what the abandoned generation holds.
authorizationAccessAuthorizationAnswers which principal reached this use case.
Exceptions
- ArgumentNullException
Thrown when any argument is null.