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
custodyIMailAccountCustodyStoreReports which copy of the mailbox is the truth, and takes the account back to mirroring.
storeIMailboxRestoreStoreReads what is left to put back and records what the pass did.
drainIMailboxDrainStoreReports whether a source removal is still outstanding, which the phase waits for.
mutationsIMailboxMutationRecordStoreHolds the records that write a held message's state onto an occurrence it still has.
contentIEmailContentStoreServes the stored payload an append carries.
writeSessionsIMailboxWriteSessionFactoryOpens the one session able to change the source mailbox.
resolutionsIMailFolderResolutionStoreNames the remote folder each alias currently binds to.
transportSecurityIMailTransportSecurityPolicyReaderSupplies the policy the source is reached under.
mappingsIMailFolderMappingReaderReports the folders the account maps, which is what a paused restore is judged from.
commitPolicyOptimisticConcurrencyRetryPolicyCommits what the pass records.
optionsMailboxSynchronizationOptionsBounds what one pass puts back.
timeProviderTimeProviderStamps the records the pass writes.
Exceptions
- ArgumentNullException
Thrown when any argument is null.
- ArgumentOutOfRangeException
Thrown when the configured bound is below one.