public LeaderWatcher(LeaderElection election, string path, ILeaderWatcher watcher)
 {
     this.election = election;
     this.path = path;
     this.watcher = watcher;
 }
 public LeaderWatcher(LeaderElection election, string path, ILeaderWatcher watcher)
 {
     this.election = election;
     this.path     = path;
     this.watcher  = watcher;
 }
 public void Initialize()
 {
     var address = Configurations.ZooKeeperAddress;
     _zk = ZooKeeperFactory.Instance.Connect(address);
     _election = new LeaderElection(_zk, "/ElectionTest", (_watcher = new LeaderWatcher()), new byte[0]);
 }