Table of Contents

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

periodStart DateTimeOffset

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

derivationStep AttachmentDerivationStep

The step whose unit is being counted.

user UserId

The user whose own consumption is asked for beside the deployment's.

cancellationToken CancellationToken

Cancels 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.