public void CloseNotification(INotification notification) { _notifications.TryRemove(notification.Id, out var removedNotification); RequestCloseNotification(new CloseNotificationEventArgs(removedNotification.Notification)); if (_notificationsPending != null && _notificationsPending.Any()) { var not = _notificationsPending.Dequeue(); PushNotification(not); } }
public void CloseNotification(INotification notification) { _notifications.TryRemove(notification.Id, out var removedNotification); RequestCloseNotification(new CloseNotificationEventArgs(removedNotification.Notification)); }