Updating JSON themes in Diffusion (Unified.NET Client Api)

I am trying to update a JSON theme using the .NET Diffusion client library. I know that currently in .NET there is only partial support for the JSON theme, but I think you can update the themes. So I created the theme using the javascript client api and then updated it using C #. The theme is created using:

var initvalue = diffusion.datatypes.json().from({ "name" : "some transaction example", "price": 2.00 }); session.topics.add("examples/rmq/testtopic", initvalue); 

but updating it in C #:

 updateControl.Updater.Update("examples/rmq/testtopic", "{'name': 'some other trans','price':20}", new TopicUpdaterUpdateCallback(st)); 

returns the initial value void / empty.

I cannot find any resources regarding JSON and .NET topics, so I would appreciate your help.

+5
source share
1 answer

Unfortunately, the Diffusion client library for .NET does not support JSON themes. However, the upcoming version of the client library will include full support for JSON and binary themes.

Update: I am pleased to announce that we have released Diffusion 5.8, which includes full support for JSON and binary themes. You can get the latest client libraries via nuget

+5
source

All Articles