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