Method ReadScanningRequestsAsync
- Assembly
- MailFathom.Infrastructure.dll
ReadScanningRequestsAsync(UserId?, CancellationToken)
Reads each distinct answer served accounts gave about scanning their mail.
Task<IReadOnlyList<MailAccountScanningRequest>> ReadScanningRequestsAsync(UserId? user, CancellationToken cancellationToken)
Parameters
userUserId?The user whose assigned accounts are asked about, or null for every served account.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<IReadOnlyList<MailAccountScanningRequest>>
One entry per distinct answer, which is a handful however many accounts gave it.
Exceptions
- ArgumentException
Thrown when
usernames nobody.