コード例 #1
0
 public Interface(FullShardAddress addr, bool updateAddress, ThreadOperations threadOps, INotifiable notify) :
     this(Member(addr.ShardID.ReplicaLevel), GetMyAddress(addr.ConsensusPort), addr.ShardID.XYZ, threadOps, notify,
          a => { if (updateAddress)
                 {
                     PublishAddress(new FullShardAddress(addr.ShardID, a.Host, addr.PeerPort, a.Port, addr.ObserverPort));
                 }
          }
          )
 {}
コード例 #2
0
 private static void PublishAddress(FullShardAddress address)
 {
     Log.Message("Publishing address: " + address);
     BaseDB.PutNow(address);
 }