Method ReadScopeAsync
- Namespace
- MailFathom.Application.Contacts
- Assembly
- MailFathom.Application.dll
ReadScopeAsync(UserId, CancellationToken)
Composes the books one user reads: their own, and the collected book of each account assigned to them.
public Task<ContactBookScope> ReadScopeAsync(UserId user, CancellationToken cancellationToken)
Parameters
userUserIdThe user.
cancellationTokenCancellationTokenCancels the read of the user's assignments.
Returns
- Task<ContactBookScope>
The scope.
Remarks
A user the deployment holds no record for is assigned nothing, so the scope is their own book — empty until somebody writes in it — rather than a refusal.