Table of Contents

Method CountByStageAsync

Namespace
MailFathom.Application.Mail.Delivery.Operations
Assembly
MailFathom.Application.dll

CountByStageAsync(MailAccountId?, CancellationToken)

Counts what stands at each stage of an outbox.

Task<IReadOnlyList<OutboxStageCount>> CountByStageAsync(MailAccountId? accountId, CancellationToken cancellationToken)

Parameters

accountId MailAccountId?

The account to count, or null to count every account this deployment serves.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<IReadOnlyList<OutboxStageCount>>

One count per stage anything stands at; a stage nothing stands at may be absent.

Remarks

The caller fills in the stages this answer omits, so a store need not enumerate what it counted nothing at.