Table of Contents

Method RecordAsync

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

RecordAsync(StoredEmailId, MailboxMutationRequester, TimeSpan?, CancellationToken)

Writes down one delete, against the email a caller named.

public Task<AuthoredMailDeletionResult> RecordAsync(StoredEmailId storedEmailId, MailboxMutationRequester requester, TimeSpan? withdrawalWindow, CancellationToken cancellationToken)

Parameters

storedEmailId StoredEmailId

The email to delete, as a listing, a search, or a read returned it.

requester MailboxMutationRequester

The invocation asking, which is what decides whether asking again is the same request.

withdrawalWindow TimeSpan?

How long the record waits before a convergence pass may take it in hand, or null where nothing waits — as nothing does for a zero window.

cancellationToken CancellationToken

Cancels the resolution and the write.

Returns

Task<AuthoredMailDeletionResult>

The record that was opened, or the reason none was.

Exceptions

ArgumentNullException

Thrown when requester is null.

ArgumentOutOfRangeException

Thrown when withdrawalWindow is negative.

PrincipalNotAuthorizedException

Thrown when the caller does not hold the deleting grant.