示例#1
0
        public void Dismiss(string id)
        {
            _notificationsStorage.Delete(id);

            // send this notificaton even when notification doesn't exist
            // we don't persist all notifications
            Add(NotificationUpdated.Create(id, NotificationUpdateType.Dismissed));
        }
示例#2
0
        public void Dismiss(string id, RavenTransaction existingTransaction = null, bool sendNotificationEvenIfDoesntExist = true)
        {
            var deleted = _notificationsStorage.Delete(id, existingTransaction);

            if (deleted == false && sendNotificationEvenIfDoesntExist == false)
            {
                return;
            }

            // send this notification even when notification doesn't exist
            // we don't persist all notifications
            Add(NotificationUpdated.Create(id, NotificationUpdateType.Dismissed));
        }