Method ReadAsync
- Namespace
- MailFathom.Application.Preferences
- Assembly
- MailFathom.Application.dll
ReadAsync(CancellationToken)
Reads what the signed-in person set about their own client.
public Task<ClientPreferences> ReadAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<ClientPreferences>
What they set, or Unset where they have set nothing.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller acts for no user, or its grant omits ProfileRead.
- JsonException
Thrown when the stored row is not a document of preferences.