Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 public SimHubController(SimLinkClient client)
 {
     this.client = client;
 }