private void InitSimLink() { // Get a reference to the SignalR SimLinkHub hub = (SimLinkHub)_webHost.Services.GetService(typeof(SimLinkHub)); // Get a reference to the SimLinkClient and initialize client = (SimLinkClient)_webHost.Services.GetService(typeof(SimLinkClient)); client.Initialize(); }
public SimHubController(SimLinkClient client) { this.client = client; }