Class MailAccountCustodySwitchOutcome
- Namespace
- MailFathom.Application.Accounts.Custody
- Assembly
- MailFathom.Application.dll
What an administrative request to change one account's custody did.
public sealed record MailAccountCustodySwitchOutcome : IEquatable<MailAccountCustodySwitchOutcome>
- Inheritance
-
MailAccountCustodySwitchOutcome
- Implements
- Inherited Members
Remarks
A refusal is a result rather than an exception, because every one of them names something an operator corrects and asks again: a mapping to stop synchronizing, a path to write, or an older replica to finish going away. See ADR 0034.
Constructors
- MailAccountCustodySwitchOutcome(MailAccountCustodyState, IReadOnlyList<MailAccountCustodyRefusalDetail>)
What an administrative request to change one account's custody did.
Properties
- Refusals
Why the switch was not accepted, empty for one that was.
- State
The account's custody as it stands after the request, which is unchanged for a refused one.
- WasAccepted
Gets whether the requested custody was written.