Exemple #1
0
 public SelfConnection(NodeConnection connection, int healthChkPeriod = 10)
 {
     this.nodeConnection = connection;
     HealthCheck(null);
     timer = new Timer(HealthCheck, null, healthChkPeriod * 1000, healthChkPeriod * 1000);
 }
 public static void addNodeConnection(NodeConnection nodeConnection)
 {
     Connections[nodeConnection.nodeId] = nodeConnection;
 }