Table of Contents

Class ContactBookScopes

Namespace
MailFathom.Application.Contacts
Assembly
MailFathom.Application.dll

Answers which books one named user reads.

public sealed class ContactBookScopes
Inheritance
ContactBookScopes
Inherited Members

Remarks

A contact scope is a user plus the accounts assigned to them, and reading the assignment relation is the only work in composing one. It is here rather than repeated at each surface so that the operator's own surface, which names the user it acts for, and the caller-facing surfaces, which derive it from the principal, compose the same scope from the same relation — a user reading their book and an operator reading it on their behalf see one thing.

It answers about the user it is asked about rather than about the caller, which is what ContactBookOwnership above it is for: naming somebody else's user is an act the administrative grant admits and a mail-serving surface must not reach.

Constructors

ContactBookScopes(IMailAccountAssignments)

Initializes the resolution over the assignment relation.

Methods

ReadScopeAsync(UserId, CancellationToken)

Composes the books one user reads: their own, and the collected book of each account assigned to them.