Interface/Interface.cs
author sl
Thu, 14 Aug 2014 09:12:59 +0200
changeset 24 f442150ff735
child 26 a6fb2b2f73b0
permissions -rw-r--r--
Adding interface project.
     1 using System;
     2 using System.Collections.Generic;
     3 using System.Linq;
     4 using System.Text;
     5 using System.Threading.Tasks;
     6 using System.ServiceModel;
     7 using System.Collections;
     8 
     9 
    10 namespace SharpDisplayInterface
    11 {
    12 
    13     [ServiceContract(CallbackContract = typeof(IDisplayServiceCallback))]
    14     public interface IDisplayService
    15     {
    16         [OperationContract(IsOneWay = true)]
    17         void Connect(string aClientName);
    18 
    19         [OperationContract(IsOneWay = true)]
    20         void SetText(int aLineIndex, string aText);
    21 
    22         [OperationContract(IsOneWay = true)]
    23         void SetTexts(System.Collections.Generic.IList<string> aTexts);
    24     }
    25 
    26 
    27     public interface IDisplayServiceCallback
    28     {
    29         [OperationContract(IsOneWay = true)]
    30         void OnConnected();
    31 
    32         [OperationContract(IsOneWay = true)]
    33         void OnServerClosing();
    34     }
    35 
    36 
    37 
    38 }