Table of Contents

Method ReadAsync

Namespace
MailFathom.Application.Preferences
Assembly
MailFathom.Application.dll

ReadAsync(UserId, CancellationToken)

Reads what one person set about their own client.

Task<ClientPreferences?> ReadAsync(UserId user, CancellationToken cancellationToken)

Parameters

user UserId

The user whose preferences are read.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<ClientPreferences>

What they set, or null where they have set nothing.

Remarks

Having set nothing is answered apart from having set the defaults, because a client drawing a first run may want to know which it is; both are rendered the same way today.

Exceptions

ArgumentException

Thrown when user names nobody.

JsonException

Thrown when the stored row is not a document of preferences, which is a row something other than this store wrote.