private void RemoveNotification(Notification notification) { foreach (ConnectionInformation connectionInfo in ConnectionStore.GetConnections(notification.userName)) { connectionInfo.Remove(notification); } }
private void UpdateNotificationList() { IEnumerable <Notification> userNotifications = NotificationStore.GetNotifications(UserIdentity.UserName); foreach (ConnectionInformation connectionInfo in ConnectionStore.GetConnections(UserIdentity.UserName)) { connectionInfo.UpdateNotificationList(userNotifications); } }