void ActivityNode_NotificationAdded(object sender, NotificationEventArgs e) { notificationsCache.AddOrUpdate(e.Notification.Id, e.Notification, (key, oldValue) => e.Notification); }
protected virtual void OnNotificationChanged(NotificationEventArgs e) { var handler = NotificationChanged; if (handler != null) handler(this, e); }
void ActivityNode_NotificationChanged(object sender, NotificationEventArgs e) { notificationsCache[e.Notification.Id].UpdateAllProperties(e.Notification); }
void ActivitySystem_NotificationAdded(object sender, NotificationEventArgs e) { Notifier.NotifyAll(NotificationType.NotificationAdded, e.Notification); }