Пример #1
0
        public void PararServico()
        {
            try
            {
                logger.Info("Parando Servico SmartTrader");

                _orderProcessing = null;
                _status          = ServicoStatus.Parado;
            }
            catch (Exception ex)
            {
                logger.Error("Erro ao parar o servico: " + ex.Message, ex);
            }
        }
Пример #2
0
        public void IniciarServico()
        {
            try
            {
                logger.Info("**********************************************************************");
                logger.Info("**********************************************************************");
                logger.Info("Iniciando Servico SmartTrader");

                _status          = ServicoStatus.EmExecucao;
                _orderProcessing = new ProcessarOrdemSmart();
            }
            catch (Exception ex)
            {
                _status = ServicoStatus.Erro;
                logger.Error("Erro ao iniciar o servico: " + ex.Message, ex);
            }
        }
Пример #3
0
 // Constructor / Destructor
 public SmartTrader()
 {
     _status          = ServicoStatus.Indefinido;
     _orderProcessing = null;
 }