Table of Contents

Method ReadDeploymentConsumedAsync

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

ReadDeploymentConsumedAsync(DateTimeOffset, AttachmentDerivationStep, CancellationToken)

Reads what one period actually consumed on one step, whoever it was counted against.

Task<long> ReadDeploymentConsumedAsync(DateTimeOffset periodStart, AttachmentDerivationStep derivationStep, CancellationToken cancellationToken)

Parameters

periodStart DateTimeOffset

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

derivationStep AttachmentDerivationStep

The step whose unit is being counted.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<long>

What was consumed inside that period, counted once per reading.

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: reading a message of a mailbox two people are assigned is charged to both of them and read 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.