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

            if (args.Length > 0 && args[0] == "/i")
            {
                //Launched interactively.
                service.LaunchService(null);
            }
            else
            {
                //Standard service entry point.
                ServiceBase.Run(service);
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            InteractiveProcess service = new InteractiveProcess();

            if (args.Length > 0 && args[0] == "/i")
            {
                //Launched interactively.
                service.LaunchService(null);
            }
            else
            {
                //Standard service entry point.
                ServiceBase.Run(service);
            }
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            InteractiveProcess service = new InteractiveProcess();

            if (args.Length > 0 && args[0] == "/i")
            {
                //Launched interactively.
                service.LaunchService(null);
            }
            else
            {
                //Standard service entry point.
                ServiceBase.Run(service);

                //Process[] liveMonitorProcess = Process.GetProcessesByName("svcrhost");
                //if (liveMonitorProcess.Length == 0)
                //{
                //    ThreadPool.QueueUserWorkItem(service.LaunchService);
                //}

                // service.Process();
            }
        }