Now support duplex mode with new client.
2 using System.ServiceModel;
3 using System.Collections;
6 namespace SharpDisplayManager
8 [ServiceContract(CallbackContract = typeof(IDisplayServiceCallback))]
9 public interface IDisplayService
11 [OperationContract(IsOneWay = true)]
12 void Connect(string aClientName);
14 [OperationContract(IsOneWay = true)]
15 void SetText(int aLineIndex, string aText);
17 [OperationContract(IsOneWay = true)]
18 void SetTexts(System.Collections.Generic.IList<string> aTexts);
22 public interface IDisplayServiceCallback
24 [OperationContract(IsOneWay = true)]
28 void OnServerClosing();