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)); } } ) {}
private static void PublishAddress(FullShardAddress address) { Log.Message("Publishing address: " + address); BaseDB.PutNow(address); }