Table of Contents

Constructor MailAccountCustodySwitch

Namespace
MailFathom.Application.Accounts.Custody
Assembly
MailFathom.Application.dll

MailAccountCustodySwitch(IMailAccountCustodyStore, IMailFolderMappingReader, IRemoteFolderCatalog, IMailTransportSecurityPolicyReader, IWorkLeaseStore, IMailAccountCustodyAuditor, IAuthoredDeleteEmailDispositionReader, OptimisticConcurrencyRetryPolicy, AccessAuthorization, TimeProvider)

Initializes a new instance of the MailAccountCustodySwitch class.

public MailAccountCustodySwitch(IMailAccountCustodyStore store, IMailFolderMappingReader mappings, IRemoteFolderCatalog remoteFolders, IMailTransportSecurityPolicyReader transportSecurity, IWorkLeaseStore leases, IMailAccountCustodyAuditor auditor, IAuthoredDeleteEmailDispositionReader deleteDispositions, OptimisticConcurrencyRetryPolicy concurrencyRetryPolicy, AccessAuthorization authorization, TimeProvider timeProvider)

Parameters

store IMailAccountCustodyStore

Persists what was asked for.

mappings IMailFolderMappingReader

Reports the folders the account maps.

remoteFolders IRemoteFolderCatalog

Lists what the account's source server advertises.

transportSecurity IMailTransportSecurityPolicyReader

Supplies the policy the source is reached under.

leases IWorkLeaseStore

Reports which replicas are holding work, and under which build.

auditor IMailAccountCustodyAuditor

Records the decision.

deleteDispositions IAuthoredDeleteEmailDispositionReader

Reports what the account's own deletions do on its source server.

concurrencyRetryPolicy OptimisticConcurrencyRetryPolicy

Commits the write, deciding again from a fresh read when another write won.

authorization AccessAuthorization

Decides whether the caller may switch custody at all.

timeProvider TimeProvider

Supplies the instant the decision is recorded at.

Exceptions

ArgumentNullException

Thrown when any argument is null.