- Timestamp:
- 01/19/16 12:45:18 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.Core.Host/Program.cs
r13556 r13557 1 1 using System; 2 using System.Configuration; 2 3 using System.Threading; 3 4 using DistributedGA.Core.Domain; … … 10 11 try { 11 12 Console.WriteLine("Starting peer..."); 13 string ipPrefix = ConfigurationManager.AppSettings["LanIpPrefix"]; 14 string serverUrl = ConfigurationManager.AppSettings["ContactServerURL"]; 15 16 12 17 IMessageHandler h = new PeerNetworkMessageHandler(); 13 h.Init( "","");18 h.Init(ipPrefix, serverUrl); 14 19 PeerInfo pi = h.GetPeerInfo(); 15 20 Console.WriteLine(string.Format("Peer is hostet at IP: {0} and port: {1}", pi.IpAddress, pi.Port));
Note: See TracChangeset
for help on using the changeset viewer.