Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The status API supports direct storage and reading of byte arrays #906

Open
saber-wang opened this issue Jul 11, 2022 · 2 comments
Open
Labels
area/client/state good first issue Good for newcomers kind/enhancement New feature or request

Comments

@saber-wang
Copy link
Contributor

saber-wang commented Jul 11, 2022

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)
@saber-wang saber-wang changed the title The status API supports direct storage of byte arrays The status API supports direct storage and reading of byte arrays Jul 11, 2022
@halspang
Copy link
Contributor

Just to clarify, this is asking for raw data from the state APIs instead of the Json path we have now?

@saber-wang
Copy link
Contributor Author

@halspang Yes, because the value may not be json

@halspang halspang added kind/enhancement New feature or request labels Jul 12, 2022
@halspang halspang added the good first issue Good for newcomers label Jul 20, 2022
divzi-p added a commit to divzi-p/dotnet-sdk that referenced this issue Jun 29, 2023
…f byte arrays dapr#906

Signed-off-by: Divya Perumal <divzi.perumal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client/state good first issue Good for newcomers kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants