/// <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() }); } }
protected override void OnContinue() { ChildProcesses.Continue(); }
protected override void OnStop() { ChildProcesses.Stop(); }
protected override void OnPause() { ChildProcesses.Pause(); }
protected override void OnStart(string[] args) { ChildProcesses.Start(args); }