예제 #1
0
        void _notificationsRepo_NotificationsMarkedRead(object sender, NotificationReadEventArgs e)
        {
            var list = e.IdList.ToList();

            list.Add(e.UserId);
            list.Add(e.IsRead.ToString().ToLower());

            var msg = string.Join("|", list.ToArray(list.Count));

            _serverManager.SendWebSocketMessage("NotificationsMarkedRead", msg);
        }
        void _notificationsRepo_NotificationsMarkedRead(object sender, NotificationReadEventArgs e)
        {
            var list = e.IdList.ToList();

            list.Add(e.UserId);
            list.Add(e.IsRead.ToString().ToLower());

            var msg = string.Join("|", list.ToArray(list.Count));

            SendMessageToUserSession(new Guid(e.UserId), "NotificationsMarkedRead", msg);
        }