Method ReadStateAsync
- Namespace
- IntentSharp.Documents
- Assembly
- IntentSharp.dll
ReadStateAsync(string, CancellationToken)
Reads a state value; null when the key has never been written.
public ValueTask<StateEntry?> ReadStateAsync(string key, CancellationToken ct = default)
Parameters
keystringThe state key.
ctCancellationTokenCancels the call.
Returns
- ValueTask<StateEntry>
Exceptions
- ArgumentException
keyis null or blank.