Answers for "GlobalHost.ConnectionManager.GetHubContext core 3.1"

0

GlobalHost.ConnectionManager.GetHubContext core 3.1

using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Infrastructure;
using Microsoft.AspNet.Mvc;

public class TestController : Controller
{
     private IHubContext testHub;

     public TestController(IConnectionManager connectionManager)
     {
         testHub = connectionManager.GetHubContext<TestHub>();
     }
 .....
Posted by: Guest on June-30-2020

Code answers related to "GlobalHost.ConnectionManager.GetHubContext core 3.1"

Browse Popular Code Answers by Language