Exemplo n.º 1
0
        public void SM_DeletedAppointment(MsgData data)
        {
            string senderName      = Context.QueryString["name"];
            var    userConnections = _connections.GetConnections(senderName);

            if (userConnections.Any())
            {
                Clients.AllExcept(userConnections.Last()).CM_OnDeleteAppointment(data.Data);
            }
        }
Exemplo n.º 2
0
        public void SM_Ping(MsgData data)
        {
            string senderName      = Context.QueryString["name"];
            var    userConnections = _connections.GetConnections(senderName);

            if (userConnections.Any())
            {
                //Clients.AllExcept(userConnections.Last()).CM_OnNewAppointmentAdded(data.Data);
            }
        }
Exemplo n.º 3
0
        public void SM_PostNewMessage(MsgData data)
        {
            string senderName      = Context.QueryString["name"];
            var    userConnections = _connections.GetConnections(senderName);

            if (userConnections.Any())
            {
                Clients.AllExcept(userConnections.ToArray()).CM_OnNewMessage(data.Data);
            }
        }