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
periodStartDateTimeOffsetThe period's start, as the budget places it.
derivationStepAttachmentDerivationStepThe step whose unit is being counted.
cancellationTokenCancellationTokenCancels the read.
Returns
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.