/// <summary>
 /// Constructor. Initializes hubconnection
 /// </summary>
 public ConsoleHub()
 {
     connection = new HubConnection(connectionUrl);
     hubProxy = connection.CreateHubProxy(hubName);
     connection.Start().Wait();
     hubProxy.Invoke("Send", "Console", "Console connected to hub").Wait();
     _hub = this;
 }
 public static ConsoleHub GetConsoleHub()
 {
     if(_hub == null)
         _hub = new ConsoleHub();
     return _hub;
 }