Method ReleaseDeletesAsync
- Namespace
- MailFathom.Application.Mail.Mutations.Authoring
- Assembly
- MailFathom.Application.dll
ReleaseDeletesAsync(IReadOnlyList<MailboxMutationRecordId>, CancellationToken)
Ends the wait in front of the deletes this caller authored, so the next pass may take each in hand.
public Task<IReadOnlyList<MailboxChangeProgress>> ReleaseDeletesAsync(IReadOnlyList<MailboxMutationRecordId> recordIds, CancellationToken cancellationToken)
Parameters
recordIdsIReadOnlyList<MailboxMutationRecordId>The records to release.
cancellationTokenCancellationTokenCancels the read and the commit.
Returns
- Task<IReadOnlyList<MailboxChangeProgress>>
One entry per record this caller holds under those identities, each reporting where it now stands.
Remarks
A record naming anything but a delete is absent from the answer, exactly as a record belonging to somebody else is: this entry point holds authority over deletes and says nothing about anything else.
Exceptions
- ArgumentNullException
Thrown when
recordIdsis null.- ArgumentOutOfRangeException
Thrown when more records are named than one call may release.
- PrincipalNotAuthorizedException
Thrown when the caller does not hold the deleting grant.