Constructor CountedEmbeddingActivation
- Namespace
- MailFathom.Application.Emails.Embeddings.Administration
- Assembly
- MailFathom.Application.dll
CountedEmbeddingActivation(IEmbeddingGenerationStore, IEmbeddingWorkloadReader, EmbeddingSpendGate, AttachmentDerivationStatusReader, EmbeddingProfileActivation, AccessAuthorization)
Initializes a new counted activation.
public CountedEmbeddingActivation(IEmbeddingGenerationStore generationStore, IEmbeddingWorkloadReader workloadReader, EmbeddingSpendGate spendGate, AttachmentDerivationStatusReader attachmentDerivation, EmbeddingProfileActivation activation, AccessAuthorization authorization)
Parameters
generationStoreIEmbeddingGenerationStoreReads which generations exist, which decides what an activation would do.
workloadReaderIEmbeddingWorkloadReaderCounts the passages the run would send.
spendGateEmbeddingSpendGateReads where the budget period stands.
attachmentDerivationAttachmentDerivationStatusReaderCounts what reading the stored mail's attachments would cost, and where their own periods stand.
activationEmbeddingProfileActivationPerforms the activation once it has been weighed.
authorizationAccessAuthorizationAnswers which principal reached this use case.
Exceptions
- ArgumentNullException
Thrown when any argument is null.