Method ReadConsumedAsync
- Namespace
- MailFathom.Application.Emails.AttachmentText.Limits
- Assembly
- MailFathom.Application.dll
ReadConsumedAsync(DateTimeOffset, AttachmentDerivationStep, UserId, CancellationToken)
Reads what one period has consumed on one step, for one user and for the deployment.
Task<AttachmentDerivationTotals> ReadConsumedAsync(DateTimeOffset periodStart, AttachmentDerivationStep derivationStep, UserId user, CancellationToken cancellationToken)
Parameters
periodStartDateTimeOffsetThe period's start, as the budget places it.
derivationStepAttachmentDerivationStepThe step whose unit is being counted.
userUserIdThe user whose own consumption is asked for beside the deployment's.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<AttachmentDerivationTotals>
Both totals, which are zero for a period nothing has been charged to 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 work neither total alone admits.