public bool CheckNotification(string connectionId) { if (NotificationsList.ContainsKey(connectionId)) { return(true); } return(false); }
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); } }