Method ReadAsync
- Namespace
- MailFathom.Application.Mail.Mutations.Authoring
- Assembly
- MailFathom.Application.dll
ReadAsync(IReadOnlyList<MailboxMutationRecordId>, CancellationToken)
Reads where each of the named changes stands.
public Task<IReadOnlyList<MailboxChangeProgress>> ReadAsync(IReadOnlyList<MailboxMutationRecordId> recordIds, CancellationToken cancellationToken)
Parameters
recordIdsIReadOnlyList<MailboxMutationRecordId>The records to ask about, as the authoring calls handed them back.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<IReadOnlyList<MailboxChangeProgress>>
One entry per record this caller holds, oldest first, and empty where it holds none of them.
Remarks
An identity this caller holds no record for is absent from the answer rather than reported as missing, so nothing here says whether somebody else's record exists.
Exceptions
- ArgumentNullException
Thrown when
recordIdsis null.- ArgumentOutOfRangeException
Thrown when more records are named than one read may ask about.
- PrincipalNotAuthorizedException
Thrown when the caller does not hold the reading grant.