Ejemplo n.º 1
0
 private void LoadConfig()
 {
     ConfigHander.configuration.Reload();
     this.Ip   = ConfigHander.GetString("master:ip");
     this.Port = ConfigHander.GetInt("master:port");
     this.ReconnectionCount = ConfigHander.GetInt("worker:reconnection");
     this.TimeOut           = ConfigHander.GetInt("worker:timeout");
     this.Polling           = ConfigHander.GetInt("worker:polling");
 }
Ejemplo n.º 2
0
 public MasterHandler()
 {
     this.Ip   = ConfigHander.GetString("master:ip");
     this.Port = ConfigHander.GetInt("master:port");
     Sessions  = new ConcurrentDictionary <string, TcpSocketSession>();
 }