- Timestamp:
- 06/19/16 23:32:37 (8 years ago)
- Location:
- branches/thasling/DistributedGA/DistributedGA.ContactServer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.ContactServer/ContactServiceImpl.cs
r13918 r13924 30 30 try { 31 31 UpdateHeartbeat(source); 32 } catch (Exception ex) { 32 } 33 catch (Exception ex) { 33 34 AddError("ContactServiceImpl.RegisterPeer", ex); 34 35 } … … 46 47 return false; 47 48 }).ToList(); 48 } catch (Exception ex) { 49 } 50 catch (Exception ex) { 49 51 AddError("ContactServiceImpl.GetPeerList", ex); 50 52 return null; … … 58 60 File.AppendAllText("Log.txt", string.Concat(source.IpAddress, ":", source.Port, ",", source.ProblemInstance, ",", msg, Environment.NewLine)); 59 61 } 60 } catch (Exception ex) { 62 } 63 catch (Exception ex) { 61 64 //Nothing to do because maybe called from adderror 62 65 } … … 68 71 DateTime now = DateTime.Now; 69 72 allPeers.AddOrUpdate(source, now, (k, v) => v = now); 70 } catch (Exception ex) { 73 } 74 catch (Exception ex) { 71 75 AddError("ContactServiceImpl.UpdateHeartbeat", ex); 72 76 } -
branches/thasling/DistributedGA/DistributedGA.ContactServer/IContactService.cs
r13887 r13924 7 7 using System.Threading.Tasks; 8 8 9 namespace DistributedGA.ContactServer 10 { 11 [ServiceContract] 12 public interface IContactService 13 { 14 [OperationContract] 15 void RegisterPeer(PeerInfo source); //Registers own instance at the contact-server 9 namespace DistributedGA.ContactServer { 10 [ServiceContract] 11 public interface IContactService { 12 [OperationContract] 13 void RegisterPeer(PeerInfo source); //Registers own instance at the contact-server 16 14 17 18 15 [OperationContract] 16 List<PeerInfo> GetPeerList(PeerInfo source); //Recieves all peers in the network from contact-server 19 17 20 21 18 [OperationContract] 19 void UpdateHeartbeat(PeerInfo source); //Sends heartbeat to contact-server 22 20 23 24 21 [OperationContract] 22 void MakeLog(PeerInfo source, string msg); //Used to log all peers at a single location 25 23 26 24 } 27 25 }
Note: See TracChangeset
for help on using the changeset viewer.