Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            Thread.CurrentThread.Name = "Main thread";
            WebCamService ServiceToRun = new WebCamService() ;

            if ( Debugger.IsAttached )
            {
                ServiceToRun.Run();
            }
            else
            {
                ServiceToRun.CanPauseAndContinue = false;
                ServiceBase.Run(ServiceToRun);
            }
        }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            Thread.CurrentThread.Name = "Main thread";
            WebCamService ServiceToRun = new WebCamService();

            if (Debugger.IsAttached)
            {
                ServiceToRun.Run();
            }
            else
            {
                ServiceToRun.CanPauseAndContinue = false;
                ServiceBase.Run(ServiceToRun);
            }
        }