I'm using MVC 5, Signal R 2.0.1, and WebAPI 2, and have a simple hub set up named ExportHub
public class ExportHub : Hub
{
public void Send(string name, string message)
{
// Call the addNewMessageToPage method to update clients.
Clients.All.addNewMessageToPage(name, message);
}
}
I'm attempting to call this from WebAPI so the UI can be updated.
var hubContext = GlobalHost.ConnectionManager.GetHubContext<ExportHub>();
But within hubContext I don't see any reference to Send or addNewMessageToPage. How do I gain access to the methods within the hub?