Method ReadCurrentPeriodAsync
- Namespace
- MailFathom.Application.Emails.AttachmentText.Limits
- Assembly
- MailFathom.Application.dll
ReadCurrentPeriodAsync(AttachmentDerivationStep, CancellationToken)
Reads where the deployment stands on one step, whatever any one user has consumed of it.
public Task<AttachmentDerivationPeriod> ReadCurrentPeriodAsync(AttachmentDerivationStep derivationStep, CancellationToken cancellationToken)
Parameters
derivationStepAttachmentDerivationStepThe step being reported on.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<AttachmentDerivationPeriod>
The period, its consumption across every user, and what it still admits.
Remarks
This is the reading an activation weighs its estimate against, so it answers for a deployment with no ceiling too: the period is still named and still counted, and only the ceiling is absent.
Exceptions
- OperationCanceledException
Thrown when the caller cancels.