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