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
storedEmailIdStoredEmailIdThe email to delete, as a listing, a search, or a read returned it.
requesterMailboxMutationRequesterThe invocation asking, which is what decides whether asking again is the same request.
withdrawalWindowTimeSpan?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.
cancellationTokenCancellationTokenCancels the resolution and the write.
Returns
- Task<AuthoredMailDeletionResult>
The record that was opened, or the reason none was.
Exceptions
- ArgumentNullException
Thrown when
requesteris null.- ArgumentOutOfRangeException
Thrown when
withdrawalWindowis negative.- PrincipalNotAuthorizedException
Thrown when the caller does not hold the deleting grant.