Пример #1
0
        public bool CheckNotification(string connectionId)
        {
            if (NotificationsList.ContainsKey(connectionId))
            {
                return(true);
            }

            return(false);
        }
Пример #2
0
 public void AddNotification(NotificationModel notificationModel)
 {
     if (NotificationsList.ContainsKey(notificationModel.TargetClient))
     {
         NotificationsList[notificationModel.TargetClient].Add(notificationModel);;
     }
     else
     {
         List <NotificationModel> list = new List <NotificationModel>();
         list.Add(notificationModel);
         NotificationsList.Add(notificationModel.TargetClient, list);
     }
 }