public override Task OnConnected()
        {
            var request = new ClientConnectedRequest(Context.ConnectionId,
                                                     Context.QueryString["userId"],
                                                     int.Parse(Context.QueryString["applicationId"]));

            MemoryCacheService.Add(request);

            return(base.OnConnected());
        }
        public override Task OnDisconnected(bool stopCalled)
        {
            MemoryCacheService.Remove(Context.ConnectionId);

            return(base.OnDisconnected(stopCalled));
        }