Table of Contents

Method SaveAsync

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

SaveAsync(UserId, ClientPreferences, CancellationToken)

Replaces what one person set about their own client.

Task<bool> SaveAsync(UserId user, ClientPreferences preferences, CancellationToken cancellationToken)

Parameters

user UserId

The user whose preferences are written.

preferences ClientPreferences

The whole set, since the document is closed and a write states all of it.

cancellationToken CancellationToken

Cancels the commit.

Returns

Task<bool>

true when the write landed, and false when this deployment holds no such user.

Remarks

A user this deployment does not hold is reported rather than raised, because the caller is a person whose row was erased under a credential that has not yet been withdrawn and the answer to them is that there is nothing here of theirs.

Exceptions

ArgumentException

Thrown when user names nobody.

ArgumentNullException

Thrown when preferences is null.