Method ReadPageAsync
- Namespace
- MailFathom.Application.Spam.History
- Assembly
- MailFathom.Application.dll
ReadPageAsync(SpamClassificationHistoryQuery, CancellationToken)
Reads one page of an account's classifications.
public Task<SpamClassificationHistoryPage> ReadPageAsync(SpamClassificationHistoryQuery query, CancellationToken cancellationToken)
Parameters
querySpamClassificationHistoryQueryThe account, the filters, and where the page continues from.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<SpamClassificationHistoryPage>
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 AdminAuditRead.
- OperationCanceledException
Thrown when the caller cancels.