Method ReadSummaryAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Operations
- Assembly
- MailFathom.Application.dll
ReadSummaryAsync(MailAccountId?, CancellationToken)
Reports how much stands at each stage of an outbox.
public Task<OutboxSummary> ReadSummaryAsync(MailAccountId? accountId, CancellationToken cancellationToken)
Parameters
accountIdMailAccountId?The account to report on, or null for every account this deployment serves.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<OutboxSummary>
The summary, with one count per declared stage.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the use case was reached by anything but a caller granted AdminRead.
- OperationCanceledException
Thrown when the caller cancels.