Table of Contents

Property User

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

User

Gets the user this unit of work is acting for, which is what decides the posture its content is scanned under.

public UserId User { get; }

Property Value

UserId

Remarks

Published here rather than read from the catalog by each use case, so the accounts a read narrows to and the user its content is scanned under are resolved in one place. It is the user the unit of work is acting for whatever scope was resolved, which is why a use case reads it here rather than off the scope: no mail row carries a user, so a scope names accounts and nothing else, while whose posture a run's text is scanned under is still a question about the person in hand. It is also available before any scope is — what a use case needs, since a search reaches a model provider with its query text before it has a page to narrow.

Exceptions

PrincipalNotAuthorizedException

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