Changeset 13556 for branches/thasling/DistributedGA/DistributedGA.Core/Implementation/TestPeerListManager.cs
- Timestamp:
- 01/19/16 12:00:45 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/TestPeerListManager.cs
r13524 r13556 1 using DistributedGA.Core.Domain; 1 using System.Collections.Generic; 2 using DistributedGA.Core.Domain; 2 3 using DistributedGA.Core.Interface; 3 using System;4 using System.Collections.Generic;5 using System.Linq;6 using System.ServiceModel;7 using System.Text;8 using System.Threading.Tasks;9 4 10 namespace DistributedGA.Core.Implementation 11 { 12 public class TestPeerListManager : IPeerListManager 13 { 14 public void Init(PeerInfo source) 15 { 5 namespace DistributedGA.Core.Implementation { 6 public class TestPeerListManager : IPeerListManager { 16 7 17 }18 8 19 public List<PeerInfo> GetPeerList() 20 { 21 PeerInfo pi1 = new PeerInfo() { IpAddress = "localhost", Port = 3030 }; 22 PeerInfo pi2 = new PeerInfo() { IpAddress = "localhost", Port = 3031 }; 23 PeerInfo pi3 = new PeerInfo() { IpAddress = "localhost", Port = 3032 }; 24 PeerInfo pi4 = new PeerInfo() { IpAddress = "localhost", Port = 3033 }; 25 PeerInfo pi5 = new PeerInfo() { IpAddress = "localhost", Port = 3034 }; 26 return new List<PeerInfo>() { pi1, pi2, pi3, pi4, pi5 }; 27 } 9 public List<PeerInfo> GetPeerList() { 10 PeerInfo pi1 = new PeerInfo() { IpAddress = "localhost", Port = 3030 }; 11 PeerInfo pi2 = new PeerInfo() { IpAddress = "localhost", Port = 3031 }; 12 PeerInfo pi3 = new PeerInfo() { IpAddress = "localhost", Port = 3032 }; 13 PeerInfo pi4 = new PeerInfo() { IpAddress = "localhost", Port = 3033 }; 14 PeerInfo pi5 = new PeerInfo() { IpAddress = "localhost", Port = 3034 }; 15 return new List<PeerInfo>() { pi1, pi2, pi3, pi4, pi5 }; 16 } 28 17 29 public void SendLogToServer(string msg) 30 { 18 public void SendLogToServer(string msg) { 31 19 32 }33 20 } 21 22 public void Init(PeerInfo source, string contactServerUrl) { 23 24 } 25 } 34 26 }
Note: See TracChangeset
for help on using the changeset viewer.