Exemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 private static void Main(string[] args)
 {
     if (Environment.UserInteractive)
     {
         ChildProcesses.Start(args);
         Console.ReadKey();
         ChildProcesses.Stop();
     }
     else
     {
         ServiceBase.Run(new ServiceBase[] { new SvcMain() });
     }
 }
Exemplo n.º 2
0
 protected override void OnStop()
 {
     ChildProcesses.Stop();
 }