Server/Services.cs
author sl
Fri, 15 Aug 2014 11:11:17 +0200
changeset 31 f19b04646b6a
parent 21 274a6b27c3f9
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.
sl@17
     1
using System;
sl@17
     2
using System.ServiceModel;
sl@19
     3
using System.Collections;
sl@17
     4
sl@20
     5
sl@17
     6
namespace SharpDisplayManager
sl@17
     7
{
sl@22
     8
    /*
sl@20
     9
    [ServiceContract(CallbackContract = typeof(IDisplayServiceCallback))]
sl@17
    10
    public interface IDisplayService
sl@17
    11
    {
sl@20
    12
        [OperationContract(IsOneWay = true)]
sl@20
    13
        void Connect(string aClientName);
sl@20
    14
sl@20
    15
        [OperationContract(IsOneWay = true)]
sl@17
    16
        void SetText(int aLineIndex, string aText);
sl@19
    17
sl@20
    18
        [OperationContract(IsOneWay = true)]
sl@19
    19
        void SetTexts(System.Collections.Generic.IList<string> aTexts);
sl@17
    20
    }
sl@20
    21
sl@20
    22
sl@20
    23
    public interface IDisplayServiceCallback
sl@20
    24
    {
sl@20
    25
        [OperationContract(IsOneWay = true)]
sl@20
    26
        void OnConnected();
sl@20
    27
sl@21
    28
        [OperationContract(IsOneWay = true)]
sl@20
    29
        void OnServerClosing();
sl@20
    30
    }
sl@22
    31
     */
sl@17
    32
}