author | sl |
Fri, 15 Aug 2014 11:11:17 +0200 | |
changeset 31 | f19b04646b6a |
parent 26 | a6fb2b2f73b0 |
child 32 | 4c416d2878dd |
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@30 | 12 |
|
sl@30 | 13 |
[ServiceContract( CallbackContract = typeof(IDisplayServiceCallback), |
sl@30 | 14 |
SessionMode = SessionMode.Required)] |
sl@24 | 15 |
public interface IDisplayService |
sl@24 | 16 |
{ |
sl@24 | 17 |
[OperationContract(IsOneWay = true)] |
sl@24 | 18 |
void Connect(string aClientName); |
sl@24 | 19 |
|
sl@24 | 20 |
[OperationContract(IsOneWay = true)] |
sl@26 | 21 |
void Disconnect(string aClientName); |
sl@26 | 22 |
|
sl@26 | 23 |
[OperationContract(IsOneWay = true)] |
sl@24 | 24 |
void SetText(int aLineIndex, string aText); |
sl@24 | 25 |
|
sl@24 | 26 |
[OperationContract(IsOneWay = true)] |
sl@24 | 27 |
void SetTexts(System.Collections.Generic.IList<string> aTexts); |
sl@24 | 28 |
} |
sl@24 | 29 |
|
sl@24 | 30 |
|
sl@24 | 31 |
public interface IDisplayServiceCallback |
sl@24 | 32 |
{ |
sl@24 | 33 |
[OperationContract(IsOneWay = true)] |
sl@24 | 34 |
void OnConnected(); |
sl@24 | 35 |
|
sl@24 | 36 |
[OperationContract(IsOneWay = true)] |
sl@24 | 37 |
void OnServerClosing(); |
sl@24 | 38 |
} |
sl@24 | 39 |
|
sl@24 | 40 |
|
sl@24 | 41 |
|
sl@24 | 42 |
} |