Closed ledjon-behluli closed 1 week ago
Pic of it in action
I'll address both points
@benjaminpetit i've addressed both points, sorry for the delay! Have a look at the test specifically the comment I left, let me know if my reasoning makes sense to you.
@ReubenBond it would be awesome if this could be merged :)
Currently the Azure Table Storage provider saves the grain state (encoded JSON) but in binary format- Regardless if the orleans serializer or one of the two json serializer are used. And while it can be decoded as UTF-8, its cumbersome to do that when someone wants to manually intervene and change the data in ATS. Let alone just a quick way to simply look at the data.
This PR brings back
StringData
but with the difference that its does NOT useNewtonsoft.Json
to serialize the data as it was previously, but instead uses theGrainStorageSerializer
and converts theBinaryData
to a string format. This allows the data to follow what ever grain storage serializer is configured by the user i.e.: Newtonsoft.Jsonor
System.Text.Json`.AFAIK this is not a breaking change, as we'll continue to read both formats for backwards compatibility.
Microsoft Reviewers: Open in CodeFlow