示例#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();
 }
示例#2
0
 public SimHubController(SimLinkClient client)
 {
     this.client = client;
 }