markus / IIpc / WcfClient.cs @ 77cdac33
이력 | 보기 | 이력해설 | 다운로드 (971 Bytes)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.ServiceModel; |
5 |
using System.Text; |
6 |
using System.Threading.Tasks; |
7 |
|
8 |
namespace IIpc |
9 |
{ |
10 |
public class WcfClient : ClientBase<IIpcClient>, IIpcClient |
11 |
{ |
12 |
/// <summary> |
13 |
/// |
14 |
/// </summary> |
15 |
/// <param name="endpoint">지정된 끝점으로 유일하게 통신한다.</param> |
16 |
public WcfClient(string endpoint) : base(IpcBinding.netNamedPipeBinding(), new EndpointAddress(string.Format("net.pipe://localhost/{0}", endpoint))) |
17 |
{ |
18 |
} |
19 |
|
20 |
public void Send(int pageno, string path) |
21 |
{ |
22 |
|
23 |
} |
24 |
|
25 |
public void SendFileDownloadReceived(double progress, bool isFinish) |
26 |
{ |
27 |
this.Channel.SendFileDownloadReceived(progress, isFinish); |
28 |
} |
29 |
|
30 |
public void SendThumbnailReceived(int pageno, string path) |
31 |
{ |
32 |
this.Channel.SendThumbnailReceived(pageno, path); |
33 |
} |
34 |
} |
35 |
} |