Table of Contents

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

generationStore IEmbeddingGenerationStore

Reads which generations exist, which decides what an activation would do.

workloadReader IEmbeddingWorkloadReader

Counts the passages the run would send.

spendGate EmbeddingSpendGate

Reads where the budget period stands.

attachmentDerivation AttachmentDerivationStatusReader

Counts what reading the stored mail's attachments would cost, and where their own periods stand.

activation EmbeddingProfileActivation

Performs the activation once it has been weighed.

authorization AccessAuthorization

Answers which principal reached this use case.

Exceptions

ArgumentNullException

Thrown when any argument is null.