Exemplo n.º 1
0
        static void Main(string[] args)
        {
            WatchdogService service = new WatchdogService();

            if (Environment.UserInteractive)
            {
                service.OnStart(args);
                Application.Run();
            }
            else
            {
                ServiceBase.Run(service);
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            WatchdogService service = new WatchdogService();

            if (Environment.UserInteractive)
            {
                service.OnStart(args);
                Application.Run();
            }
            else
            {
                ServiceBase.Run(service);
            }
        }