Ejemplo n.º 1
0
 public void Process(WatchedEvent @event)
 {
     if (@event.Type == EventType.NodeDeleted)
     {
         Logger.GetLogger(service.BaseUrl).Error("leader offline, run for leader");
         service.RunForLeaderNode();
     }
 }
Ejemplo n.º 2
0
 public void Process(WatchedEvent @event)
 {
     if (@event.Type == EventType.NodeDeleted)
     {
         Console.WriteLine("leader offline, run for leader");
         service.RunForLeaderNode();
     }
 }
Ejemplo n.º 3
0
            public override Task process(WatchedEvent @event)
            {
                if (@event.get_Type() == EventType.NodeDeleted)
                {
                    Logger.GetLogger(service.BaseUrl).Error("leader offline, run for leader");
                    service.RunForLeaderNode();
                }

                return(Task.CompletedTask);
            }