예제 #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 void IniciarServico()
        {
            _me     = this;
            _config = GerenciadorConfig.ReceberConfig <GeracaoBaseConfig>();

            if (_config != null)
            {
                foreach (BaseParam parametro in _config.Parametros)
                {
                    logger.Info("Carregando parametros da funcao [" + parametro.FunctionName + "]");
                    dctParametros.Add(parametro.FunctionName, parametro);
                }
            }

            if (ConfigurationManager.AppSettings["PortaHttp"] != null)
            {
                portaHttp = Convert.ToInt32(ConfigurationManager.AppSettings["PortaHttp"].ToString());
            }

            httpServer = new MyHttpServer(portaHttp, _config);

            thHttp = new Thread(new ThreadStart(httpServer.listen));
            thHttp.Start();

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

            _status = ServicoStatus.EmExecucao;
        }
        public void IniciarServico()
        {
            logger.Info("Iniciando ServicoRecalculoFinanceiroBRP");

            _status = ServicoStatus.EmExecucao;

            _scheduler = new CronStyleScheduler();

            _scheduler.Start();

            logger.Info("ServicoRecalculoFinanceiroBRP iniciado");
        }