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