markus / ConvertService / ConverterService / ConverterStation / Program.cs @ 7ca218b3
이력 | 보기 | 이력해설 | 다운로드 (794 Bytes)
1 |
#define Release |
---|---|
2 |
using System; |
3 |
using System.Collections.Generic; |
4 |
using System.Linq; |
5 |
using System.ServiceProcess; |
6 |
using System.Text; |
7 |
|
8 |
namespace ConverterStation |
9 |
{ |
10 |
class Program |
11 |
{ |
12 |
/// <summary> |
13 |
/// The main entry point for the application. |
14 |
/// </summary> |
15 |
static void Main() |
16 |
{ |
17 |
|
18 |
var convertStartion = new ConverterStation(); |
19 |
#if Release |
20 |
ServiceBase[] ServicesToRun ; |
21 |
ServicesToRun = new ServiceBase[] |
22 |
{ |
23 |
convertStartion |
24 |
}; |
25 |
ServiceBase.Run(ServicesToRun); |
26 |
#else |
27 |
Console.WriteLine("ConverterStation Start()"); |
28 |
convertStartion.onStart(); |
29 |
while(true) |
30 |
{ |
31 |
var item = Console.ReadLine(); |
32 |
} |
33 |
#endif |
34 |
} |
35 |
} |
36 |
} |