Calling SignalR hub methods from a different project

In the solution I have a SignalR Server hub that users connect to. In the other project of the Server I want to call the Client methods. However SignalR Hub is not static, and if I declare a new SignalR hub class then it will have different connections then the original hub.

How can I reference the original SignalR hub in a different project?


使用可以调用Clients GlobalHost.ConnectionManager.GetHubContext<YourHubClass>()

链接地址: http://www.djcxy.com/p/96182.html

上一篇: SignalR集线器和Identity.Claims

下一篇: 从另一个项目调用SignalR hub方法