markus / MarkusAutoUpdate / src / IIpc / WcfClient.cs @ d8f5045e
이력 | 보기 | 이력해설 | 다운로드 (912 Bytes)
1 | d8f5045e | 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 | public WcfClient(string endpoint) : base(new NetNamedPipeBinding(), new EndpointAddress(string.Format("net.pipe://localhost/{0}", endpoint))) |
||
17 | { |
||
18 | } |
||
19 | |||
20 | public void ParamReceived(string InstallPath, string tempStoragePath, string downloadFile, string KcomPath, string Param) |
||
21 | { |
||
22 | this.Channel.ParamReceived(InstallPath, tempStoragePath, downloadFile, KcomPath, Param); |
||
23 | } |
||
24 | |||
25 | public void ProcessStart() |
||
26 | { |
||
27 | this.Channel.ProcessStart(); |
||
28 | } |
||
29 | } |
||
30 | } |