diff -r bb8b0b9fa21b -r f442150ff735 Interface/Interface.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Interface/Interface.cs Thu Aug 14 09:12:59 2014 +0200 @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.ServiceModel; +using System.Collections; + + +namespace SharpDisplayInterface +{ + + [ServiceContract(CallbackContract = typeof(IDisplayServiceCallback))] + public interface IDisplayService + { + [OperationContract(IsOneWay = true)] + void Connect(string aClientName); + + [OperationContract(IsOneWay = true)] + void SetText(int aLineIndex, string aText); + + [OperationContract(IsOneWay = true)] + void SetTexts(System.Collections.Generic.IList aTexts); + } + + + public interface IDisplayServiceCallback + { + [OperationContract(IsOneWay = true)] + void OnConnected(); + + [OperationContract(IsOneWay = true)] + void OnServerClosing(); + } + + + +}