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
storeIMailAccountCustodyStorePersists what was asked for.
mappingsIMailFolderMappingReaderReports the folders the account maps.
remoteFoldersIRemoteFolderCatalogLists what the account's source server advertises.
transportSecurityIMailTransportSecurityPolicyReaderSupplies the policy the source is reached under.
leasesIWorkLeaseStoreReports which replicas are holding work, and under which build.
auditorIMailAccountCustodyAuditorRecords the decision.
deleteDispositionsIAuthoredDeleteEmailDispositionReaderReports what the account's own deletions do on its source server.
concurrencyRetryPolicyOptimisticConcurrencyRetryPolicyCommits the write, deciding again from a fresh read when another write won.
authorizationAccessAuthorizationDecides whether the caller may switch custody at all.
timeProviderTimeProviderSupplies the instant the decision is recorded at.
Exceptions
- ArgumentNullException
Thrown when any argument is null.