I\'ve set up a SignalR hub to communicate between the server and client. The hub server side code is stored in a class called Hooking.cs. What I want is to be able to call a
This is the correct way for SignalR 2.x:
var context = GlobalHost.ConnectionManager.GetHubContext();
context.Clients.All.addMessage(message);
Basically, you can use the dependency resolver for the current host to resolve the IConnectionManager interface which allows you to get ahold of the context object for a hub.
Further information can be found in the official documentation.