Пример #1
0
        /// <summary>
        /// EventHandler de status de conexoes com as bolsas
        /// </summary>
        /// <param name="status"></param>
        public void StatusConexaoAlterada(RoteadorOrdens.Lib.Dados.StatusConexaoBolsaInfo status)
        {
            try
            {
                _lastStatus = DateTime.Now;

                StatusConexaoBolsaStreamer info = new StatusConexaoBolsaStreamer(status);

                lock (queueStatus)
                {
                    queueStatus.Enqueue(info);
                }
            }
            catch (Exception ex)
            {
                logger.Error("StatusConexaoAlterada():" + ex.Message, ex);
            }
        }
Пример #2
0
 public void StatusConexaoAlterada(RoteadorOrdens.Lib.Dados.StatusConexaoBolsaInfo status)
 {
     logger.InfoFormat("Status: [{0}] [{1}] [{2}]", status.Bolsa, status.Operador, (status.Conectado ? "true" : "false"));
     _lastStatusBolsa = DateTime.Now.Ticks;
 }