Пример #1
0
        private static void timerGetPersistMachineInformation(object sender, ElapsedEventArgs e)
        {
            bool teste = true;

            if (teste)
            {
                try
                {
                    _timerGetPersistMachineInformation.Stop();
                    var listaMachineInformation = RabbitMqHelper.GetAllQueues();
                    if (listaMachineInformation != null && listaMachineInformation.Count > 0)
                    {
                        AddMachineInformation(listaMachineInformation);
                    }
                }
                finally
                {
                    _timerGetPersistMachineInformation.Start();
                }
            }
        }