Пример #1
0
        public IEnumerable <INotification> GetNotificationsToRemove(NotificationsList notifications)
        {
            var notificationsToRemove = notifications
                                        .Select(x => x.Value.Notification)
                                        .Where(x => x.Message == _message)
                                        .ToList();

            return(notificationsToRemove);
        }
Пример #2
0
        public IEnumerable <INotification> GetNotificationsToRemove(NotificationsList notifications)
        {
            var notificationsToRemove = notifications
                                        .Select(x => x.Value.Notification)
                                        .Where(x =>
            {
                object otherTag = x.Options.Tag;
                if (ReferenceEquals(otherTag, null))
                {
                    return(ReferenceEquals(_tag, null));
                }
                else
                {
                    return(otherTag.Equals(_tag));
                }
            })
                                        .ToList();

            return(notificationsToRemove);
        }
Пример #3
0
 public IEnumerable <INotification> GetNotificationsToRemove(NotificationsList notifications)
 {
     return(notifications.Select(x => x.Value.Notification));
 }