Table of Contents

Method ReadAssignedAccountsAsync

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

ReadAssignedAccountsAsync(CancellationToken)

Reads the accounts the user in hand is assigned, deduplicated and ordered, or empty when they are assigned none.

Task<IReadOnlyList<ServedMailAccount>> ReadAssignedAccountsAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancels the read.

Returns

Task<IReadOnlyList<ServedMailAccount>>

The served accounts assigned to the user, in the ordinal order of their identifiers.

Remarks

Ordered the way ReadServedAccountsAsync(CancellationToken) is, and for the same reason: a scope resolved from it is canonical, so a continuation cursor issued for it stays valid while neither the account records nor this user's assignments change.

Exceptions

PrincipalNotAuthorizedException

Thrown when the work in hand is acting for no user.