public static bool RegisterHubClient(IHubClient client) { bool result = _hubClientSet.Add(client); if (result && (_channel != null)) { client.ConnectHub(_channel); } return(result); }