Method ReadPageAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Operations
- Assembly
- MailFathom.Application.dll
ReadPageAsync(OutboxQuery, CancellationToken)
Serves one bounded page of the sends this deployment has recorded.
Task<OutboxPage> ReadPageAsync(OutboxQuery query, CancellationToken cancellationToken)
Parameters
queryOutboxQueryWhich sends, and how the page is narrowed and continued.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<OutboxPage>
The page, and the boundary the next one is asked with where the reading continues.
Remarks
The recipients of a send are deliberately not read at all rather than read and dropped, so a page of an outbox never puts anybody's address into memory on its way to being left out of the answer.
Exceptions
- ArgumentNullException
Thrown when
queryis null.