Constructor MailboxDrainPass
- Namespace
- MailFathom.Application.Synchronization.Drain
- Assembly
- MailFathom.Application.dll
MailboxDrainPass(IMailAccountCustodyStore, IMailboxDrainStore, IMailboxMutationRecordStore, IEmailContentStore, IEmailContentRepairRequestStore, IMailboxWriteSessionFactory, IMailFolderResolutionStore, IMailTransportSecurityPolicyReader, IMailFolderMappingReader, OptimisticConcurrencyRetryPolicy, MailboxSynchronizationOptions, TimeProvider)
Initializes a new instance of the MailboxDrainPass class.
public MailboxDrainPass(IMailAccountCustodyStore custody, IMailboxDrainStore store, IMailboxMutationRecordStore mutations, IEmailContentStore content, IEmailContentRepairRequestStore repairRequests, IMailboxWriteSessionFactory writeSessions, IMailFolderResolutionStore resolutions, IMailTransportSecurityPolicyReader transportSecurity, IMailFolderMappingReader mappings, OptimisticConcurrencyRetryPolicy commitPolicy, MailboxSynchronizationOptions options, TimeProvider timeProvider)
Parameters
custodyIMailAccountCustodyStoreReports whether the account's mailbox is held at all.
storeIMailboxDrainStoreReads what the source still holds and records what the pass did.
mutationsIMailboxMutationRecordStoreSays whether the account still owes its source a change, which a switch waits out.
contentIEmailContentStoreReads a stored payload back for the gate.
repairRequestsIEmailContentRepairRequestStoreRecords an object the gate found could not be vouched for.
writeSessionsIMailboxWriteSessionFactoryOpens the one session able to change the source mailbox.
resolutionsIMailFolderResolutionStoreNames a folder the account has already bound, which the capability probe opens against.
transportSecurityIMailTransportSecurityPolicyReaderSupplies the policy the source is reached under.
mappingsIMailFolderMappingReaderReports the folders the account maps, which is what a paused drain is judged from.
commitPolicyOptimisticConcurrencyRetryPolicyCommits what the pass records.
optionsMailboxSynchronizationOptionsBounds the pass and each command's UID set.
timeProviderTimeProviderStamps when a payload was verified.
Exceptions
- ArgumentNullException
Thrown when any argument is null.
- ArgumentOutOfRangeException
Thrown when either configured bound is below one.