- Timestamp:
- 01/19/16 09:57:22 (9 years ago)
- Location:
- branches/thasling/DistributedGA
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/PeerNetworkMessageHandler.cs
r13553 r13554 46 46 47 47 peerListManager = new WcfPeerListManager(); 48 //peerListManager = new TestPeerListManager();49 48 peerListManager.Init(ownInstance); 50 49 -
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfPeerListManager.cs
r13541 r13554 15 15 private PeerInfo myself = null; 16 16 17 List<PeerInfo> allPeers = null;18 List<PeerInfo> peersForMessaging = null;19 20 17 public void Init(PeerInfo source) { 21 18 serverString = ConfigurationManager.AppSettings["ContactServerURL"]; … … 26 23 27 24 public List<PeerInfo> GetPeerList() { 28 //TODO: maybe always request a new list from the contact server so that he can refresh the heartbeat... 29 if (allPeers == null) { 30 allPeers = client.GetPeerList(myself); 31 peersForMessaging = ChoosePeersForMessaging(allPeers); 32 } 25 var allPeers = client.GetPeerList(myself); 26 var peersForMessaging = ChoosePeersForMessaging(allPeers); 33 27 //return peersForMessaging; 34 28 return allPeers; //TODO: Enable 10% list communication
Note: See TracChangeset
for help on using the changeset viewer.