Documentation
Table of Contents

Method ReadStateAsync

Namespace
IntentSharp.Documents
Assembly
IntentSharp.dll

ReadStateAsync(string, CancellationToken)

Reads a state value; null when the key has never been written.

ValueTask<StateEntry?> ReadStateAsync(string key, CancellationToken ct = default)

Parameters

key string

The state key.

ct CancellationToken

Cancels the call.

Returns

ValueTask<StateEntry>

Exceptions

ArgumentException

key is null or blank.