Rev | Line | |
---|
[13524] | 1 | using DistributedGA.Core.Domain;
|
---|
| 2 | using System;
|
---|
| 3 | using System.Collections.Generic;
|
---|
| 4 | using System.Linq;
|
---|
| 5 | using System.ServiceModel;
|
---|
| 6 | using System.Text;
|
---|
| 7 | using System.Threading.Tasks;
|
---|
| 8 |
|
---|
[13924] | 9 | namespace DistributedGA.Core.Interface {
|
---|
| 10 | [ServiceContract]
|
---|
| 11 | public interface IContactService {
|
---|
| 12 | [OperationContract]
|
---|
| 13 | void RegisterPeer(PeerInfo source); //Registers own instance at the contact-server
|
---|
[13524] | 14 |
|
---|
[13924] | 15 | [OperationContract]
|
---|
| 16 | List<PeerInfo> GetPeerList(PeerInfo source); //Recieves all peers in the network from contact-server
|
---|
[13524] | 17 |
|
---|
[13924] | 18 | [OperationContract]
|
---|
| 19 | void UpdateHeartbeat(PeerInfo source); //Sends heartbeat to contact-server
|
---|
[13887] | 20 |
|
---|
[13924] | 21 | [OperationContract]
|
---|
| 22 | void MakeLog(PeerInfo source, string msg); //Used to log all peers at a single location
|
---|
[13887] | 23 |
|
---|
[13924] | 24 | }
|
---|
[13524] | 25 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.