How to use StackExchange.Redis ConnectionMultiplexer with SignalR.Redis (2.2)

夙愿已清 提交于 2019-12-24 03:36:22

问题


Currently SignalR.Redis is using Booksleeve.

However, SignalR.Redis has now migrated to StackExchange.Redis instead of Booksleave in the signalR.Redis (2.2 Dev Branch).

We can still specify a single Redis server using the same code after upgrading to 2.2:

GlobalHost.DependencyResolver.UseRedis("localhost", 6379, string.Empty, "myApp");

However, I am now wondering how I can use the ConnectionMultiplexer (available in StackExchange.Redis) to specify multiple servers with SignalR.Redis (instead of specifying just one single server).

The answer here: Using SignalR with Redis messagebus failover using BookSleeve's ConnectionUtils.Connect() has taken me in the right direction, however I am confused as to how I implement it.

Any help is very much appreciated.


回答1:


there is not possible to specify a ConnectionMultiplex on SignalR 2.2. I opened an issue about that here https://github.com/SignalR/SignalR/issues/3383

and I'm creating a PR to the repo. Damian marked that issue for the milestone 2.2.1, hopefully will be released soon (of course I've to send the PR first)

.u



来源:https://stackoverflow.com/questions/27654532/how-to-use-stackexchange-redis-connectionmultiplexer-with-signalr-redis-2-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!