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
userUserIdThe user whose preferences are written.
preferencesClientPreferencesThe whole set, since the document is closed and a write states all of it.
cancellationTokenCancellationTokenCancels the commit.
Returns
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
usernames nobody.- ArgumentNullException
Thrown when
preferencesis null.