Esempio 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();
     }
 }
Esempio n. 2
0
 public void Process(WatchedEvent @event)
 {
     if (@event.Type == EventType.NodeDeleted)
     {
         Console.WriteLine("leader offline, run for leader");
         service.RunForLeaderNode();
     }
 }
Esempio 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);
            }