public void Notify(GraphNotification notification) { try { if (notification.Source == null) { GlobalSettings.Instance.UserLog.Add(new LogMessage(_msgTypeConverter[notification.Type], notification.Message)); } else { GlobalSettings.Instance.UserLog.Add(new NodeMessage(notification.Source, _msgTypeConverter[notification.Type], notification.Message)); } } catch (KeyNotFoundException) { GlobalSettings.Instance.UserLog.Add(new LogMessage(LogMessage.LogType.Warning, $"Unknown notification type: {notification.Type}. Message: {notification.Message}")); } }
public NotifyEventArgs(GraphNotification notification, object itemData) { Notification = notification; ItemData = itemData; }
private void Notify(object instance, GraphNotification action) { }