Exemplo n.º 1
0
        ///////////////////////////////////////////////////////////////////////
        public static void Main(String[] args)
        {
            _logger.Info("Application START");

            Console.CancelKeyPress += new ConsoleCancelEventHandler(Console_CancelKeyPress);

            // TODO parse args and configure
            _tiempo = new Tiempo();
            _tiempo.Enabled = true;

            _logger.Debug("Starting main application loop");

            while (_apprun) {
                Thread.Sleep(100);
            }

            _logger.Info("Application EXIT");
        }
Exemplo n.º 2
0
        ///////////////////////////////////////////////////////////////////////
        public static void Main(String[] args)
        {
            _logger.Info("Application START");

            // TODO parse args and configure _tiempo
            Tiempo tiempo = new Tiempo();

            _logger.Debug("Starting daemon");
            ServiceBase.Run(new Daemon(tiempo));

            _logger.Info("Application EXIT");
        }
Exemplo n.º 3
0
        ///////////////////////////////////////////////////////////////////////
        public Daemon(Tiempo tiempo)
        {
            InitializeComponent();

            _tiempo = tiempo;
        }