Table of Contents

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

custody IMailAccountCustodyStore

Reports whether the account's mailbox is held at all.

store IMailboxDrainStore

Reads what the source still holds and records what the pass did.

mutations IMailboxMutationRecordStore

Says whether the account still owes its source a change, which a switch waits out.

content IEmailContentStore

Reads a stored payload back for the gate.

repairRequests IEmailContentRepairRequestStore

Records an object the gate found could not be vouched for.

writeSessions IMailboxWriteSessionFactory

Opens the one session able to change the source mailbox.

resolutions IMailFolderResolutionStore

Names a folder the account has already bound, which the capability probe opens against.

transportSecurity IMailTransportSecurityPolicyReader

Supplies the policy the source is reached under.

mappings IMailFolderMappingReader

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

commitPolicy OptimisticConcurrencyRetryPolicy

Commits what the pass records.

options MailboxSynchronizationOptions

Bounds the pass and each command's UID set.

timeProvider TimeProvider

Stamps when a payload was verified.

Exceptions

ArgumentNullException

Thrown when any argument is null.

ArgumentOutOfRangeException

Thrown when either configured bound is below one.