Table of Contents

Method ReadAssignedAccountsAsync

Namespace
MailFathom.Application.Emails.Mailboxes
Assembly
MailFathom.Application.dll

ReadAssignedAccountsAsync(CancellationToken)

Reads the accounts this unit of work may reach, which is what a read that builds no scope narrows by.

public Task<IReadOnlyList<MailAccountId>> ReadAssignedAccountsAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancels the read of the user's assignments.

Returns

Task<IReadOnlyList<MailAccountId>>

The accounts the user in hand is assigned and this deployment serves.

Remarks

The same answer ReadableScopeAsync(IReadOnlyList<MailAccountSelector>, IReadOnlyList<MailFolderReference>, JunkMailInclusion, CancellationToken) narrows a query with, published for the reads that reach a row by its own generated identifier and build no scope at all: a mutation record, a withdrawal, a release. A caller assigned nothing gets an empty list, and a containment test against an empty list reads nothing, which is the same fail-closed answer NothingReadable is.

Exceptions

PrincipalNotAuthorizedException

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