source: branches/thasling/DistributedGA/DistributedGA.Core/Implementation/TestPeerListManager.cs @ 13524

Last change on this file since 13524 was 13524, checked in by thasling, 5 years ago

Upload des Projekts letztendlich, trotz buggendes Clients...

File size: 1.0 KB
Line 
1using DistributedGA.Core.Domain;
2using DistributedGA.Core.Interface;
3using System;
4using System.Collections.Generic;
5using System.Linq;
6using System.ServiceModel;
7using System.Text;
8using System.Threading.Tasks;
9
10namespace DistributedGA.Core.Implementation
11{
12    public class TestPeerListManager : IPeerListManager
13    {
14        public void Init(PeerInfo source)
15        {
16
17        }
18
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        }
28
29        public void SendLogToServer(string msg)
30        {
31
32        }
33    }
34}
Note: See TracBrowser for help on using the repository browser.