Table of Contents

Method ReadDeploymentConsumedInputCharactersAsync

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

ReadDeploymentConsumedInputCharactersAsync(DateTimeOffset, CancellationToken)

Reads what one period actually sent to a provider, whoever it was counted against.

Task<long> ReadDeploymentConsumedInputCharactersAsync(DateTimeOffset periodStart, CancellationToken cancellationToken)

Parameters

periodStart DateTimeOffset

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

cancellationToken CancellationToken

Cancels the read.

Returns

Task<long>

The characters already sent inside that period, counted once per call.

Remarks

This is what an administrative reading asks, and it is the deployment's own count rather than the sum of the per-user ones: a call embedding a mailbox two people are assigned is charged to both of them and sent once. A deployment administrator acts for no user, so the question they can be answered is this one, and a gate that had to invent a user to answer it would be attributing a figure to somebody who did not ask for it.