sl@17: using System; sl@17: using System.ServiceModel; sl@19: using System.Collections; sl@17: sl@20: sl@17: namespace SharpDisplayManager sl@17: { sl@20: [ServiceContract(CallbackContract = typeof(IDisplayServiceCallback))] sl@17: public interface IDisplayService sl@17: { sl@20: [OperationContract(IsOneWay = true)] sl@20: void Connect(string aClientName); sl@20: sl@20: [OperationContract(IsOneWay = true)] sl@17: void SetText(int aLineIndex, string aText); sl@19: sl@20: [OperationContract(IsOneWay = true)] sl@19: void SetTexts(System.Collections.Generic.IList aTexts); sl@17: } sl@20: sl@20: sl@20: public interface IDisplayServiceCallback sl@20: { sl@20: [OperationContract(IsOneWay = true)] sl@20: void OnConnected(); sl@20: sl@20: [OperationContract] sl@20: void OnServerClosing(); sl@20: } sl@17: }