Table of Contents

Method WithdrawDeletesAsync

Namespace
MailFathom.Application.Mail.Mutations.Authoring
Assembly
MailFathom.Application.dll

WithdrawDeletesAsync(IReadOnlyList<MailboxMutationRecordId>, CancellationToken)

Withdraws deletes this caller authored.

public Task<IReadOnlyList<MailboxChangeProgress>> WithdrawDeletesAsync(IReadOnlyList<MailboxMutationRecordId> recordIds, CancellationToken cancellationToken)

Parameters

recordIds IReadOnlyList<MailboxMutationRecordId>

The records to withdraw.

cancellationToken CancellationToken

Cancels 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

It is the way back from the one act that has none once it has happened, which is why a delete is worth holding before it is attempted at all: a record still at Recorded is a message that is still there, and this is what leaves it there. A record a pass has already taken in hand is reported where it stands, exactly as a flag change or a move is — the mail has gone, and saying otherwise would be a promise this deployment cannot keep.

Exceptions

ArgumentNullException

Thrown when recordIds is null.

ArgumentOutOfRangeException

Thrown when more records are named than one call may withdraw.

PrincipalNotAuthorizedException

Thrown when the caller does not hold the deleting grant.