Table of Contents

Constructor MailboxRestorePass

Namespace
MailFathom.Application.Synchronization.Restore
Assembly
MailFathom.Application.dll

MailboxRestorePass(IMailAccountCustodyStore, IMailboxRestoreStore, IMailboxDrainStore, IMailboxMutationRecordStore, IEmailContentStore, IMailboxWriteSessionFactory, IMailFolderResolutionStore, IMailTransportSecurityPolicyReader, IMailFolderMappingReader, OptimisticConcurrencyRetryPolicy, MailboxSynchronizationOptions, TimeProvider)

Initializes a new instance of the MailboxRestorePass class.

public MailboxRestorePass(IMailAccountCustodyStore custody, IMailboxRestoreStore store, IMailboxDrainStore drain, IMailboxMutationRecordStore mutations, IEmailContentStore content, IMailboxWriteSessionFactory writeSessions, IMailFolderResolutionStore resolutions, IMailTransportSecurityPolicyReader transportSecurity, IMailFolderMappingReader mappings, OptimisticConcurrencyRetryPolicy commitPolicy, MailboxSynchronizationOptions options, TimeProvider timeProvider)

Parameters

custody IMailAccountCustodyStore

Reports which copy of the mailbox is the truth, and takes the account back to mirroring.

store IMailboxRestoreStore

Reads what is left to put back and records what the pass did.

drain IMailboxDrainStore

Reports whether a source removal is still outstanding, which the phase waits for.

mutations IMailboxMutationRecordStore

Holds the records that write a held message's state onto an occurrence it still has.

content IEmailContentStore

Serves the stored payload an append carries.

writeSessions IMailboxWriteSessionFactory

Opens the one session able to change the source mailbox.

resolutions IMailFolderResolutionStore

Names the remote folder each alias currently binds to.

transportSecurity IMailTransportSecurityPolicyReader

Supplies the policy the source is reached under.

mappings IMailFolderMappingReader

Reports the folders the account maps, which is what a paused restore is judged from.

commitPolicy OptimisticConcurrencyRetryPolicy

Commits what the pass records.

options MailboxSynchronizationOptions

Bounds what one pass puts back.

timeProvider TimeProvider

Stamps the records the pass writes.

Exceptions

ArgumentNullException

Thrown when any argument is null.

ArgumentOutOfRangeException

Thrown when the configured bound is below one.