markus / ConsoleIpcServer / Program.cs @ master
이력 | 보기 | 이력해설 | 다운로드 (732 Bytes)
1 | 2007ecaa | taeseongkim | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
5 | using System.Threading.Tasks; |
||
6 | |||
7 | namespace ConsoleIpcServer |
||
8 | { |
||
9 | class Program |
||
10 | { |
||
11 | static void Main(string[] args) |
||
12 | { |
||
13 | 664ea2e1 | taeseongkim | IIpc.WcfServer wcfServer = new IIpc.WcfServer("cjH9jWriG8d84ecfa411afb7Thumbnail"); |
14 | 2007ecaa | taeseongkim | wcfServer.IpcThumbnailReceived += WcfServer_IpcThumbnailReceived; |
15 | wcfServer.Start(); |
||
16 | |||
17 | while (true) |
||
18 | { |
||
19 | System.Threading.Thread.Sleep(100); |
||
20 | } |
||
21 | } |
||
22 | |||
23 | private static void WcfServer_IpcThumbnailReceived(object sender, IIpc.IpcThumbnailEventArgs e) |
||
24 | { |
||
25 | Console.WriteLine($"{e.PageNo} {e.Path}"); |
||
26 | } |
||
27 | } |
||
28 | } |