Interface/Interface.cs
changeset 24 f442150ff735
child 26 a6fb2b2f73b0
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Interface/Interface.cs	Thu Aug 14 09:12:59 2014 +0200
     1.3 @@ -0,0 +1,38 @@
     1.4 +using System;
     1.5 +using System.Collections.Generic;
     1.6 +using System.Linq;
     1.7 +using System.Text;
     1.8 +using System.Threading.Tasks;
     1.9 +using System.ServiceModel;
    1.10 +using System.Collections;
    1.11 +
    1.12 +
    1.13 +namespace SharpDisplayInterface
    1.14 +{
    1.15 +
    1.16 +    [ServiceContract(CallbackContract = typeof(IDisplayServiceCallback))]
    1.17 +    public interface IDisplayService
    1.18 +    {
    1.19 +        [OperationContract(IsOneWay = true)]
    1.20 +        void Connect(string aClientName);
    1.21 +
    1.22 +        [OperationContract(IsOneWay = true)]
    1.23 +        void SetText(int aLineIndex, string aText);
    1.24 +
    1.25 +        [OperationContract(IsOneWay = true)]
    1.26 +        void SetTexts(System.Collections.Generic.IList<string> aTexts);
    1.27 +    }
    1.28 +
    1.29 +
    1.30 +    public interface IDisplayServiceCallback
    1.31 +    {
    1.32 +        [OperationContract(IsOneWay = true)]
    1.33 +        void OnConnected();
    1.34 +
    1.35 +        [OperationContract(IsOneWay = true)]
    1.36 +        void OnServerClosing();
    1.37 +    }
    1.38 +
    1.39 +
    1.40 +
    1.41 +}