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