Method SaveAsync
- Namespace
- MailFathom.Application.Preferences
- Assembly
- MailFathom.Application.dll
SaveAsync(ClientPreferences, CancellationToken)
Replaces what the signed-in person set about their own client.
public Task<bool> SaveAsync(ClientPreferences preferences, CancellationToken cancellationToken)
Parameters
preferencesClientPreferencesThe whole set, since the document is closed and a write states all of it.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<bool>
true when the write landed, and false when this deployment holds no record for the caller.
Exceptions
- ArgumentNullException
Thrown when
preferencesis null.- PrincipalNotAuthorizedException
Thrown when the caller acts for no user, or its grant omits ProfileWrite.