Constructor UnmirroredMailFolderEraser
- Namespace
- MailFathom.Application.Folders
- Assembly
- MailFathom.Application.dll
UnmirroredMailFolderEraser(IStoredMailFolderMirrorStore, IMailFolderMappingReader, OptimisticConcurrencyRetryPolicy, MailboxSynchronizationOptions, AccessAuthorization)
Initializes the eraser.
public UnmirroredMailFolderEraser(IStoredMailFolderMirrorStore mirrorStore, IMailFolderMappingReader mappings, OptimisticConcurrencyRetryPolicy concurrencyRetryPolicy, MailboxSynchronizationOptions options, AccessAuthorization authorization)
Parameters
mirrorStoreIStoredMailFolderMirrorStoreRemoves the stored mail of one folder and clears its checkpoint.
mappingsIMailFolderMappingReaderSays what the account's configuration makes of the folder, which is what answers whether its source keeps messages there.
concurrencyRetryPolicyOptimisticConcurrencyRetryPolicyCommits one pass, retrying a conflict with a competing writer.
optionsMailboxSynchronizationOptionsBounds one pass, reusing the bound the backward pass over stored mail already carries.
authorizationAccessAuthorizationAnswers which principal reached this use case.
Exceptions
- ArgumentNullException
Thrown when any argument is null.