1.1 --- a/Server/Services.cs Tue Aug 12 21:27:35 2014 +0200
1.2 +++ b/Server/Services.cs Wed Aug 13 23:02:40 2014 +0200
1.3 @@ -2,15 +2,29 @@
1.4 using System.ServiceModel;
1.5 using System.Collections;
1.6
1.7 +
1.8 namespace SharpDisplayManager
1.9 {
1.10 - [ServiceContract]
1.11 + [ServiceContract(CallbackContract = typeof(IDisplayServiceCallback))]
1.12 public interface IDisplayService
1.13 {
1.14 - [OperationContract]
1.15 + [OperationContract(IsOneWay = true)]
1.16 + void Connect(string aClientName);
1.17 +
1.18 + [OperationContract(IsOneWay = true)]
1.19 void SetText(int aLineIndex, string aText);
1.20
1.21 - [OperationContract]
1.22 + [OperationContract(IsOneWay = true)]
1.23 void SetTexts(System.Collections.Generic.IList<string> aTexts);
1.24 }
1.25 +
1.26 +
1.27 + public interface IDisplayServiceCallback
1.28 + {
1.29 + [OperationContract(IsOneWay = true)]
1.30 + void OnConnected();
1.31 +
1.32 + [OperationContract]
1.33 + void OnServerClosing();
1.34 + }
1.35 }