I want to get a SignalR IHubContext in my Singleton Class, which is outside of the hub.

I create the singleton like this:

```
private static GameManager instance;
public static GameManager Instance
{
    get
    {
        lock (padLock)
        {
            return instance ?? (instance = new GameManager());
        }
    }
}

```

Which means the Constructor with the IHubContext parameter doesn't work.
From MS Docs:

```
public class HomeController : Controller
{
    private readonly IHubContext<NotificationHub> _hubContext;

    public HomeController(IHubContext<NotificationHub> hubContext)
    {
        _hubContext = hubContext;
    }
}

```

Is there a workaround so I still have the GameManager as a Singleton and access to my SignalR Hub to send timed updates?

I'm sorry if I missed something, I'm completely new to ASP.net and signalR