Table of Contents

Method Of

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

Of(UserId, IReadOnlyList<MailAccountId>)

Describes a user reading their own book and the collected books of the accounts they are assigned.

public static ContactBookScope Of(UserId user, IReadOnlyList<MailAccountId> assignedAccounts)

Parameters

user UserId

The user.

assignedAccounts IReadOnlyList<MailAccountId>

The accounts assigned to them, in any order.

Returns

ContactBookScope

The scope.

Remarks

An account named twice contributes one book, because a book is the account's rather than the assignment's, and the accounts are ordered here rather than taken as given so that the precedence between two of them does not depend on which reader assembled the list. A user assigned nothing reads their own book alone, which is the same shape rather than a case of its own.

Exceptions

ArgumentNullException

Thrown when assignedAccounts is null.