Method ReadPageAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Operations
- Assembly
- MailFathom.Application.dll
ReadPageAsync(OutboxQuery, CancellationToken)
Reads one page of the sends this deployment has recorded.
public Task<OutboxPage> ReadPageAsync(OutboxQuery query, CancellationToken cancellationToken)
Parameters
queryOutboxQueryThe filters and where the page continues from.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<OutboxPage>
The page, and the cursor the following one is asked with.
Exceptions
- ArgumentNullException
Thrown when
queryis null.- PrincipalNotAuthorizedException
Thrown when the use case was reached by anything but a caller granted AdminRead.
- OperationCanceledException
Thrown when the caller cancels.