Changeset 13554 for branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfPeerListManager.cs
- Timestamp:
- 01/19/16 09:57:22 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.