C# examples on this page are missing the `ConnectionStringSetting = parameter that should be passed alongside HubName. Other language examples show that the connection string reference is required but C#'s examples do not.
For example, SendToGroup should be
[FunctionName("SendMessage")]
public static Task SendMessage(
[HttpTrigger(AuthorizationLevel.Anonymous, "post")]object message,
[SignalR(ConnectionStringSetting = <SIGNAL_R_CONNECTION_STRING>, HubName = "chat")]IAsyncCollector<SignalRMessage> signalRMessages)
{
return signalRMessages.AddAsync(
new SignalRMessage
{
// the message will be sent to the group with this name
GroupName = "myGroup",
Target = "newMessage",
Arguments = new [] { message }
});
}
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: b253c164-d46b-0193-b168-7eb024097bf6
Version Independent ID: 5858135e-528b-81ba-84a9-a89e8f165c36
C# examples on this page are missing the `ConnectionStringSetting = parameter that should be passed alongside HubName. Other language examples show that the connection string reference is required but C#'s examples do not.
For example, SendToGroup should be
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.