Method ReadTelemetryAnswerToCarryAsync
- Namespace
- MailFathom.Application.Preferences
- Assembly
- MailFathom.Application.dll
ReadTelemetryAnswerToCarryAsync(CancellationToken)
Reads the answer the signed-in person stored for the telemetry switch, for a write that carries it forward rather than deciding it.
public Task<bool> ReadTelemetryAnswerToCarryAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
Remarks
Asked under the writing grant, because it is a step of the write: the document is replaced whole, so a write that may not decide the switch has to state the answer already stored. No permission implies another, and a caller holding the writing grant alone would otherwise be refused an ordinary save by a read they never asked for. It hands back the one value such a write restates and nothing else of the document.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller acts for no user, or its grant omits ProfileWrite.
- JsonException
Thrown when the stored row is not a document of preferences.