Server/Services.cs
author sl
Thu, 14 Aug 2014 09:30:14 +0200
changeset 25 6f10207a89a8
parent 21 274a6b27c3f9
permissions -rw-r--r--
Fixing hang when closing server with live client due to client instance context
throwing an exception when closing.
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
}