我目前在 Azure 上托管我的 redis 缓存服务器,并让 signalR 依赖它作为主干,使用以下...
GlobalHost.DependencyResolver.UseRedis("Server",port,"password","eventKey");
这可以在端口 6379(非 SSL)上找到,但是当我尝试连接到我的 Azure Redis 服务器的 SSL 端口 (6380) 时,我的聊天应用程序中断了,并且集线器从未启动。这个问题的原因可能是什么?还是我做错了什么?
这是我浏览器中/signalr/connect 上出现的错误 净::ERR_CONNECTION_RESET
最佳答案
你可以试试这个:
GlobalHost.DependencyResolver.UseRedis(new RedisScaleoutConfiguration(connectionString, "YourServer"));
和连接字符串类似:
connectionString="yourNameHere.cache.windows.net,ssl=true,password=YourPasswordKey"
确保您使用的是通过 StackExchange.Redis 构建的 SignalR(最新的最好;)
关于redis - SignalR 无法连接到 SSL 上的 Azure Redis,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29570224/