예제 #1
0
        public void IniciarServico()
        {
            _me = this;

            logger.Info("Iniciando ServicoAutomacaoOrdensTeste");

            _bKeepRunning = true;

            logger.Info("Carregando configuracao e parametros de teste");

            _config = Gradual.OMS.Library.GerenciadorConfig.ReceberConfig <ParametrosTesteConfig>();

            thMonitorRoteador = new Thread(new ThreadStart(MonitorRoteador));
            thMonitorRoteador.Start();

            thProcCallback = new Thread(new ThreadStart(ProcessadorCallback));
            thProcCallback.Start();

            logger.Info("Iniciando scheduler");

            _cron = new CronStyleScheduler();
            _cron.Start();

            _status = ServicoStatus.EmExecucao;
        }
예제 #2
0
        public static ServicoAutomacaoOrdensTeste GetInstance()
        {
            if (_me == null)
            {
                _me = new ServicoAutomacaoOrdensTeste();
            }

            return(_me);
        }