Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/16 23:32:37 (8 years ago)
Author:
thasling
Message:

#2615:
delete unneeded project, appended code style

Location:
branches/thasling/DistributedGA/DistributedGA.ContactServer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/thasling/DistributedGA/DistributedGA.ContactServer/ContactServiceImpl.cs

    r13918 r13924  
    3030      try {
    3131        UpdateHeartbeat(source);
    32       } catch (Exception ex) {
     32      }
     33      catch (Exception ex) {
    3334        AddError("ContactServiceImpl.RegisterPeer", ex);
    3435      }
     
    4647            return false;
    4748        }).ToList();
    48       } catch (Exception ex) {
     49      }
     50      catch (Exception ex) {
    4951        AddError("ContactServiceImpl.GetPeerList", ex);
    5052        return null;
     
    5860          File.AppendAllText("Log.txt", string.Concat(source.IpAddress, ":", source.Port, ",", source.ProblemInstance, ",", msg, Environment.NewLine));
    5961        }
    60       } catch (Exception ex) {
     62      }
     63      catch (Exception ex) {
    6164        //Nothing to do because maybe called from adderror
    6265      }
     
    6871        DateTime now = DateTime.Now;
    6972        allPeers.AddOrUpdate(source, now, (k, v) => v = now);
    70       } catch (Exception ex) {
     73      }
     74      catch (Exception ex) {
    7175        AddError("ContactServiceImpl.UpdateHeartbeat", ex);
    7276      }
  • branches/thasling/DistributedGA/DistributedGA.ContactServer/IContactService.cs

    r13887 r13924  
    77using System.Threading.Tasks;
    88
    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
     9namespace DistributedGA.ContactServer {
     10  [ServiceContract]
     11  public interface IContactService {
     12    [OperationContract]
     13    void RegisterPeer(PeerInfo source); //Registers own instance at the contact-server
    1614
    17         [OperationContract]
    18         List<PeerInfo> GetPeerList(PeerInfo source); //Recieves all peers in the network from contact-server
     15    [OperationContract]
     16    List<PeerInfo> GetPeerList(PeerInfo source); //Recieves all peers in the network from contact-server
    1917
    20         [OperationContract]
    21         void UpdateHeartbeat(PeerInfo source); //Sends heartbeat to contact-server
     18    [OperationContract]
     19    void UpdateHeartbeat(PeerInfo source); //Sends heartbeat to contact-server
    2220
    23         [OperationContract]
    24         void MakeLog(PeerInfo source, string msg); //Used to log all peers at a single location
     21    [OperationContract]
     22    void MakeLog(PeerInfo source, string msg); //Used to log all peers at a single location
    2523
    26     }
     24  }
    2725}
Note: See TracChangeset for help on using the changeset viewer.