markus / IIpc / WcfClient.cs @ master
이력 | 보기 | 이력해설 | 다운로드 (992 Bytes)
1 | 2007ecaa | taeseongkim | 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 | 664ea2e1 | taeseongkim | public WcfClient(string endpoint) : base(IpcBinding.netNamedPipeBinding(), new EndpointAddress(string.Format("net.pipe://localhost/{0}", endpoint))) |
17 | 2007ecaa | taeseongkim | { |
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 | 6a19b48d | taeseongkim | public void SendThumbnailReceived(int pageno, string path, bool isLast) |
31 | 2007ecaa | taeseongkim | { |
32 | 6a19b48d | taeseongkim | this.Channel.SendThumbnailReceived(pageno, path, isLast); |
33 | 2007ecaa | taeseongkim | } |
34 | } |
||
35 | } |