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>()
。