Table of Contents

Class CountedEmbeddingActivation

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

Counts what activating the declared geometry would cost, and refuses it where the budget does not admit it.

public sealed class CountedEmbeddingActivation
Inheritance
CountedEmbeddingActivation
Inherited Members

Remarks

EmbeddingProfileActivation is the writer and deliberately knows nothing about money: by the time it is called the decision has been made. This is the step in front of it that makes the decision an informed one — the counting, the ceiling, and the refusal that ADR 0006 puts between an operator and the first thing MailFathom does that costs money per unit of mail.

The confirmation itself is not here. Whether a person agreed is a property of the terminal the command was typed at, so it belongs to mfctl; what belongs here is the number they are agreeing to and the ceiling they already agreed to, both of which are facts about the deployment.

Constructors

CountedEmbeddingActivation(IEmbeddingGenerationStore, IEmbeddingWorkloadReader, EmbeddingSpendGate, EmbeddingProfileActivation)

Initializes a new counted activation.

Methods

ActivateAsync(EmbeddingProfileIdentity, CancellationToken)

Weighs the declared geometry and activates it unless the spend ceiling refuses.

AssessAsync(EmbeddingProfileIdentity, CancellationToken)

Reads what activating the declared geometry would do and what it would cost, writing nothing.