Azure / azure-functions-signalrservice-extension

Azure Functions bindings for SignalR Service. Project moved to https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService .
MIT License
97 stars 48 forks source link

Serialisation with Multiple Instances of Azure signal R #277

Closed Dewaldf closed 3 years ago

Dewaldf commented 3 years ago

I am trying to connect my function to multiple instances of azure signal r , as explained in this document

The problem I have is that the property names on my payload has changed to camelCase. I am guessing this is because System.Text.Json is now used for serialization. I tried to use NewtonSoft by adding Azure__SignalR__HubProtocol=NewtonsoftJson to my settings, but the case remains the same.

How can change this to be using Pascal case again, while still being able to connect to multiple instances of Azure signal r ?

Y-Sindo commented 3 years ago

~~Only adding Azure__SignalR__HubProtocol=NewtonsoftJson uses the new JsonSerializerSettings() setting. You could also add Azure__SignalR__HubProtocol__NewtonsoftJson__CamelCase=true to enable camel case.~~

Dewaldf commented 3 years ago

I tried this Azure__SignalR__HubProtocol__NewtonsoftJson__CamelCase=false , cause I do not want camel case, but still having the issue, according to this it is known that it will not work

Dewaldf commented 3 years ago

I Installed the latest Microsoft.Azure.WebJobs.Extensions.SignalRService package , working now.