Table of Contents

Method ReadUserAsync

Namespace
MailFathom.Application.Access
Assembly
MailFathom.Application.dll

ReadUserAsync(UserId, CancellationToken)

Reads the envelope of one user this deployment holds.

Task<UserRecord?> ReadUserAsync(UserId user, CancellationToken cancellationToken)

Parameters

user UserId

The user whose envelope is read.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<UserRecord>

The user's envelope, or null when this deployment holds no such user.

Remarks

It stands beside the roster rather than being composed from it, because the two answer for different callers. A user-facing surface asks what this deployment records about the person who authenticated, and reading the roster to filter it down to one would compose a deployment-wide catalog of people to answer a question about one of them. The label is what such a surface is after: it is the one thing the envelope holds that a person is shown, and it is not in the document beside it.

Exceptions

ArgumentException

Thrown when user names nobody.