Table of Contents

Method ReadConsumedInputCharactersAsync

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

ReadConsumedInputCharactersAsync(DateTimeOffset, UserId, CancellationToken)

Reads what one period has consumed so far, for one user and for the deployment.

Task<EmbeddingSpendTotals> ReadConsumedInputCharactersAsync(DateTimeOffset periodStart, UserId user, CancellationToken cancellationToken)

Parameters

periodStart DateTimeOffset

The period's start, as the budget places it.

user UserId

The user whose own consumption is asked for beside the deployment's.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<EmbeddingSpendTotals>

Both totals, which are zero for a period nothing has spent in yet.

Remarks

One read rather than two, because a gate weighing a user's figure taken at one moment against a deployment figure taken at another could admit a request neither total alone admits.