Skip to content

Orleans IPersistentState POCO Namespace/Class Library Versioning problems #9085

Answered by zharchimage
zharchimage asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, I did some research and had to change the Json configuration as you suggested. Apparently there is a flag in the JsonSerializerSettings that adds the full TypeName to the serialization as it was happening by default https://www.newtonsoft.com/json/help/html/serializetypenamehandling.htm

Followed the configuration suggested in https://github.com/dotnet/docs/issues/33943

siloBuilder.Configure<OrleansJsonSerializerOptions>(options =>
{
    options.JsonSerializerSettings.TypeNameHandling = TypeNameHandling.Auto;
})

And everything works fine. No assembly nor namespace added to de serialized JSON.

Thanks for the help again!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zharchimage
Comment options

@zharchimage
Comment options

Answer selected by zharchimage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants