我想在 azure 函数中配置 Azure SignalR 的主要和次要连接字符串。
[FunctionName("negotiate")]
public static SignalRConnectionInfo GetSignalRInfo(
[HttpTrigger(AuthorizationLevel.Anonymous, "post", "api/negotiate")] HttpRequest req,
[SignalRConnectionInfo(HubName = "chat")] SignalRConnectionInfo connectionInfo,
ILogger log)
{
return connectionInfo;
}
使用上面的代码,运行时总是在寻找
"AzureSignalRConnectionString", but wanted to specify like below.
"AzureSignalRConnectionString:region1:Primary": "connectionstring1",
"AzureSignalRConnectionString:region2:Secondary": "connectionstring2"
我通读了文档,找不到与此相关的任何内容。
有没有办法在无服务器函数应用程序中指定多个 azure SignalR 连接字符串?