Skip to content

Commit

Permalink
Fix SignalR input binding for c# isolated worker(#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Sindo authored Jul 26, 2024
1 parent 64c2d41 commit 8f677d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions samples/DotnetIsolated-BidirectionChat/Functions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ public HttpResponseData GetWebPage([HttpTrigger(AuthorizationLevel.Anonymous)] H
}

[Function("Negotiate")]
public SignalRConnectionInfo Negotiate([HttpTrigger(AuthorizationLevel.Anonymous)] HttpRequestData req,
[SignalRConnectionInfoInput(HubName = "Hub", UserId = "{query.userid}")] SignalRConnectionInfo signalRConnectionInfo)
public string Negotiate([HttpTrigger(AuthorizationLevel.Anonymous)] HttpRequestData req,
[SignalRConnectionInfoInput(HubName = "Hub", UserId = "{query.userid}")] string signalRConnectionInfo)
{
_logger.LogInformation("Executing negotiation.");
// The serialization of the connection info object is done by the framework. It should be camel case. The SignalR client respects the camel case response only.
return signalRConnectionInfo;
}

Expand Down

0 comments on commit 8f677d5

Please sign in to comment.