I have hub service and client. They are both talking but through console application, not able to inject IHubContext.
var context = GlobalHost.ConnectionManager.GetHubContext<HubSec>("TestHub");
And I tried
var context = GlobalHost.ConnectionManager.GetHubContext("TestHub");
Both time getting same error.