Method ReadUsersAssignedToAsync
- Namespace
- MailFathom.Application.Accounts
- Assembly
- MailFathom.Application.dll
ReadUsersAssignedToAsync(MailAccountId, CancellationToken)
Reads the users one account is assigned to, or empty when it is assigned to nobody.
Task<IReadOnlyList<UserId>> ReadUsersAssignedToAsync(MailAccountId account, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account asked about.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<IReadOnlyList<UserId>>
The users assigned that account, in the order of their identifiers.
Remarks
The relation read the other way round, which is what a fan-out needs: a change to one mailbox reaches every person served by it, and an account assigned to nobody reaches nobody rather than everybody. It answers about an account rather than about the caller, so nothing narrows a caller's own reach by it — what uses it is work holding a mailbox and owing something per person: a signal a synchronization run raises, the per-user spend ceilings, and the language a shared mailbox's derived text is composed in.