Beispiel #1
0
 void ActivityNode_NotificationAdded(object sender, NotificationEventArgs e)
 {
     notificationsCache.AddOrUpdate(e.Notification.Id, e.Notification, (key, oldValue) => e.Notification);
 }
Beispiel #2
0
 protected virtual void OnNotificationChanged(NotificationEventArgs e)
 {
     var handler = NotificationChanged;
     if (handler != null) handler(this, e);
 }
Beispiel #3
0
 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);
 }