Table of Contents

Interface IAdministrativeTargets

Namespace
MailFathom.Application.Access
Assembly
MailFathom.Application.dll

Places what an administrative operation names in the deployment, so a scope can be asked whether it covers it.

public interface IAdministrativeTargets

Remarks

It answers from the records a deployment holds at the moment it is asked, never from a copy a replica keeps, because moving a user or a mailbox between organizations has to reach the very next check on every replica: a placement read from a cache would let an administrator of the organization somebody just left go on reading their mail until it expired.

Something the deployment does not hold is answered Unplaced rather than refused. What decides whether an unknown target is an error is the operation; what decides who reaches it is this, and nothing narrower than the deployment reaches a target nobody can place.

Methods

PlaceMailAccountsAsync(IReadOnlyCollection<MailAccountId>, CancellationToken)

Places mail accounts in one read: the organization each belongs to and whether one user alone is assigned it.

PlaceUserAsync(UserId, CancellationToken)

Places one user: the organization they are a member of.