Class MailAccountCustodySwitch
- Namespace
- MailFathom.Application.Accounts.Custody
- Assembly
- MailFathom.Application.dll
Switches one mail account between mirroring its source server and holding its own mailbox.
public sealed class MailAccountCustodySwitch
- Inheritance
-
MailAccountCustodySwitch
- Inherited Members
Remarks
The one way an account's custody changes. Nothing in the configuration file, a reload, or a template reaches it: emptying somebody's source is a deliberate act against one mailbox, so it is one command naming one account, taken under a permission of its own and written to the audit trail whichever way it goes.
It refuses what can be known when it is issued and nothing else. What the source advertises about UIDPLUS
cannot be known without a connection the account's own supervision already holds, so a source without it holds the
account in Mirrored and reports why rather than being refused here. See
ADR 0034.
Constructors
- MailAccountCustodySwitch(IMailAccountCustodyStore, IMailFolderMappingReader, IRemoteFolderCatalog, IMailTransportSecurityPolicyReader, IWorkLeaseStore, IMailAccountCustodyAuditor, IAuthoredDeleteEmailDispositionReader, OptimisticConcurrencyRetryPolicy, AccessAuthorization, TimeProvider)
Initializes a new instance of the MailAccountCustodySwitch class.
Methods
- ReadAsync(MailAccountId, CancellationToken)
Reads what one account's custody currently is.
- SwitchAsync(MailAccountId, MailAccountCustody, CancellationToken)
Asks for one account's custody to become what was named.