public string GetConnectionID(string userID)
        {
            if (_signalRConnectionsManager.GetConnections(userID) != null)
            {
                return(_signalRConnectionsManager.GetConnections(userID).FirstOrDefault());
            }

            _signalRConnectionsManager.AddConnection(userID, Context.ConnectionId);

            return(Context.ConnectionId);
        }
        public string GetUserConnectionID(string userID)
        {
            HashSet <string> connections = _connectionManager.GetConnections(userID);

            if (connections == null)
            {
                return(string.Empty);
            }

            return(connections.FirstOrDefault());
        }