markus / ConsoleIpcServer / Program.cs @ 2007ecaa
이력 | 보기 | 이력해설 | 다운로드 (704 Bytes)
1 |
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 |
IIpc.WcfServer wcfServer = new IIpc.WcfServer("test1"); |
14 |
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 |
} |