dotnet-sdk
dotnet-sdk copied to clipboard
The status API supports direct storage and reading of byte arrays
trafficstars
Describe the proposal
https://github.com/dapr/dotnet-sdk/blob/master/src/Dapr.Client/DaprClientGrpc.cs#L789
Can I simply add 2 methods, for example
Task<bool> TrySaveStateByteAsync(
string storeName,
string key,
byte[] value,
string etag,
StateOptions stateOptions = default,
IReadOnlyDictionary<string, string> metadata = default,
CancellationToken cancellationToken = default)
Task<byte[]> GetStateByteAsync(
string storeName,
string key,
ConsistencyMode? consistencyMode = default,
IReadOnlyDictionary<string, string> metadata = default,
CancellationToken cancellationToken = default)
Just to clarify, this is asking for raw data from the state APIs instead of the Json path we have now?
@halspang Yes, because the value may not be json