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
periodStartDateTimeOffsetThe period's start, as the budget places it.
userUserIdThe user whose own consumption is asked for beside the deployment's.
cancellationTokenCancellationTokenCancels 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.