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.Core/Interface
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/thasling/DistributedGA/DistributedGA.Core/Interface/IContactService.cs

    r13887 r13924  
    77using System.Threading.Tasks;
    88
    9 namespace DistributedGA.Core.Interface
    10 {
    11     [ServiceContract]
    12     public interface IContactService
    13     {
    14         [OperationContract]
    15         void RegisterPeer(PeerInfo source); //Registers own instance at the contact-server
     9namespace DistributedGA.Core.Interface {
     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}
  • branches/thasling/DistributedGA/DistributedGA.Core/Interface/IMessageContract.cs

    r13887 r13924  
    33using DistributedGA.Core.Domain;
    44
    5 namespace DistributedGA.Core.Interface
    6 {
     5namespace DistributedGA.Core.Interface {
    76
    8     [ServiceContract]
    9     public interface IMessageContract
    10     {
     7  [ServiceContract]
     8  public interface IMessageContract {
    119
    12         [OperationContract]
    13         void SendData(PeerInfo sender, byte[][] data);
     10    [OperationContract]
     11    void SendData(PeerInfo sender, byte[][] data);
    1412
    15         event EventHandler<MessageRecieveEventArgs> MessageRecieved;
    16     }
     13    event EventHandler<MessageRecieveEventArgs> MessageRecieved;
     14  }
    1715}
  • branches/thasling/DistributedGA/DistributedGA.Core/Interface/IMessageHandler.cs

    r13887 r13924  
    22using DistributedGA.Core.Domain;
    33
    4 namespace DistributedGA.Core.Interface
    5 {
     4namespace DistributedGA.Core.Interface {
    65
    7     public interface IMessageHandler
    8     {
     6  public interface IMessageHandler {
    97
    10         void Init(string lanIpPrefix, string contactServerUrl); //Registers at contract-server
     8    void Init(string lanIpPrefix, string contactServerUrl); //Registers at contract-server
    119
    12         void PublishDataToNetwork(byte[][] data);
     10    void PublishDataToNetwork(byte[][] data);
    1311
    14         byte[][] GetDataFromNetwork();
     12    byte[][] GetDataFromNetwork();
    1513
    16         PeerInfo GetPeerInfo();
     14    PeerInfo GetPeerInfo();
    1715
    18         List<PeerInfo> GetCurrentNetwork();
     16    List<PeerInfo> GetCurrentNetwork();
    1917
    20         void Dispose();
    21     }
     18    void Dispose();
     19  }
    2220}
  • branches/thasling/DistributedGA/DistributedGA.Core/Interface/IMessageSender.cs

    r13918 r13924  
    11using DistributedGA.Core.Domain;
    22
    3 namespace DistributedGA.Core.Interface
    4 {
     3namespace DistributedGA.Core.Interface {
    54
    6     public interface IMessageSender
    7     {
     5  public interface IMessageSender {
    86
    9         void Init(PeerInfo source);
     7    void Init(PeerInfo source);
    108
    11         void SendData(PeerInfo destination, byte[][] data);
     9    void SendData(PeerInfo destination, byte[][] data);
    1210
    13         void Dispose();
    14     }
     11    void Dispose();
     12  }
    1513}
  • branches/thasling/DistributedGA/DistributedGA.Core/Interface/IMessageService.cs

    r13887 r13924  
    22using DistributedGA.Core.Domain;
    33
    4 namespace DistributedGA.Core.Interface
    5 {
     4namespace DistributedGA.Core.Interface {
    65
    7     public interface IMessageService
    8     {
     6  public interface IMessageService {
    97
    10         /// <summary>
    11         /// Initializes a WCF service and host it with another thread
    12         /// </summary>
    13         /// <param name="ip">current external ip address</param>
    14         /// <returns>The port, on which the service was successfully hosted</returns>
    15         int Init(string ip);
     8    /// <summary>
     9    /// Initializes a WCF service and host it with another thread
     10    /// </summary>
     11    /// <param name="ip">current external ip address</param>
     12    /// <returns>The port, on which the service was successfully hosted</returns>
     13    int Init(string ip);
    1614
    17         void Dispose();
     15    void Dispose();
    1816
    19         event EventHandler<MessageRecieveEventArgs> OnDataRecieved;
    20     }
     17    event EventHandler<MessageRecieveEventArgs> OnDataRecieved;
     18  }
    2119}
  • branches/thasling/DistributedGA/DistributedGA.Core/Interface/IPeerListManager.cs

    r13918 r13924  
    22using DistributedGA.Core.Domain;
    33
    4 namespace DistributedGA.Core.Interface
    5 {
     4namespace DistributedGA.Core.Interface {
    65
    7     public interface IPeerListManager
    8     {
     6  public interface IPeerListManager {
    97
    10         void Init(PeerInfo source, string contactServerUrl); //Registers own instance at the contact-server
     8    void Init(PeerInfo source, string contactServerUrl); //Registers own instance at the contact-server
    119
    12         List<PeerInfo> GetPeerList(); //Recieves all peers in the network from contact-server
     10    List<PeerInfo> GetPeerList(); //Recieves all peers in the network from contact-server
    1311
    14         void SendLogToServer(string msg);
     12    void SendLogToServer(string msg);
    1513
    16         void Dispose();
    17     }
     14    void Dispose();
     15  }
    1816}
Note: See TracChangeset for help on using the changeset viewer.