dapr / dotnet-sdk

Dapr SDK for .NET
Apache License 2.0
1.12k stars 341 forks source link

#906 -Added methods in status API supports for saving and reading binary data #1116

Open divzi-p opened 1 year ago

divzi-p commented 1 year ago

Description

906 -Added methods in status API supports for saving and reading binary data.

Added methods to directly save and read Byte arrays. New methods defined in DaprClient.cs New methods implemented in DaprClientGrpc.cs Unit tests written in StateApITest.cs

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[906]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

codecov[bot] commented 1 year ago

Codecov Report

Attention: Patch coverage is 90.12346% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 66.78%. Comparing base (fd7168f) to head (4916d1a). Report is 34 commits behind head on master.

:exclamation: Current head 4916d1a differs from pull request most recent head ba6855c. Consider uploading reports for the commit ba6855c to get more accurate results

Files Patch % Lines
src/Dapr.Client/DaprClientGrpc.cs 90.12% 6 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1116 +/- ## ========================================== + Coverage 66.45% 66.78% +0.32% ========================================== Files 171 171 Lines 5750 5831 +81 Branches 624 635 +11 ========================================== + Hits 3821 3894 +73 - Misses 1782 1788 +6 - Partials 147 149 +2 ``` | [Flag](https://app.codecov.io/gh/dapr/dotnet-sdk/pull/1116/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr) | Coverage Δ | | |---|---|---| | [net6](https://app.codecov.io/gh/dapr/dotnet-sdk/pull/1116/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr) | `66.78% <90.12%> (+0.32%)` | :arrow_up: | | [net7](https://app.codecov.io/gh/dapr/dotnet-sdk/pull/1116/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr) | `66.78% <90.12%> (+0.32%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dapr#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

divzi-p commented 10 months ago

@halspang, @philliphoff - Thanks for your comments and sorry for the delay. Please review.