public void Process(WatchedEvent @event) { switch (@event.Type) { case EventType.NodeChildrenChanged: { node.LoadLiveFeed(); Logger.GetLogger(node.BaseUrl).Info("detected feed node change"); break; } } }
public void Process(WatchedEvent @event) { switch (@event.Type) { case EventType.NodeChildrenChanged: { node.LoadLiveFeed(); Console.WriteLine("detected feed node change"); break; } } }
public override Task process(WatchedEvent @event) { switch (@event.get_Type()) { case EventType.NodeChildrenChanged: { node.LoadLiveFeed(); Logger.GetLogger(node.BaseUrl).Info("detected feed node change"); break; } } return(Task.CompletedTask); }