예제 #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     #if DEBUG
     var myService = new SendTextService();
     myService.OnDebug();
     System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
     #else
     var servicesToRun = new ServiceBase[]
     {
         new SendTextService(),
     };
     ServiceBase.Run(servicesToRun);
     #endif
 }
예제 #2
0
파일: Program.cs 프로젝트: igorrash/main
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     #if DEBUG
     var myService = new SendTextService();
     myService.OnDebug();
     System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
     #else
     var servicesToRun = new ServiceBase[]
     {
         new SendTextService(),
     };
     ServiceBase.Run(servicesToRun);
     #endif
 }