Interface/Interface.cs
author sl
Fri, 15 Aug 2014 11:11:17 +0200
changeset 31 f19b04646b6a
parent 26 a6fb2b2f73b0
child 32 4c416d2878dd
permissions -rw-r--r--
Fixing our client issue with static MainForm overwritten when using multiple clients.
That was basically our issue with broadcast not working the way it should.
     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                         SessionMode = SessionMode.Required)]
    15     public interface IDisplayService
    16     {
    17         [OperationContract(IsOneWay = true)]
    18         void Connect(string aClientName);
    19 
    20         [OperationContract(IsOneWay = true)]
    21         void Disconnect(string aClientName);
    22 
    23         [OperationContract(IsOneWay = true)]
    24         void SetText(int aLineIndex, string aText);
    25 
    26         [OperationContract(IsOneWay = true)]
    27         void SetTexts(System.Collections.Generic.IList<string> aTexts);
    28     }
    29 
    30 
    31     public interface IDisplayServiceCallback
    32     {
    33         [OperationContract(IsOneWay = true)]
    34         void OnConnected();
    35 
    36         [OperationContract(IsOneWay = true)]
    37         void OnServerClosing();
    38     }
    39 
    40 
    41 
    42 }