Beispiel #1
0
        private void WaitForTqRecord()
        {
            Thread.CurrentThread.Name = "TQ";

            try
            {
                var p = new PollTQ(MotSqlServer, _mutex, GatewayIp, GatewayPort);
                p.UseAscii = this.UseAscii;

                while (KeepRunning)
                {
                    try
                    {
                        p.ReadTQRecords();
                    }
                    catch (RowNotInTableException)
                    {
                        ;
                    }


                    Thread.Sleep(RefreshRate);
                }

                Console.WriteLine("TQ thread exiting");
            }
            catch (Exception ex)
            {
                EventLogger.Error($"Failed in Prescriber {ex.Message}");
            }
        }
        private void WaitForTqRecord()
        {
            try
            {
                var p = new PollTQ(MotSqlServer, _mutex, GatewayIp, GatewayPort);

                while (KeepRunning)
                {
                    p.ReadTQRecords();
                    Thread.Sleep(RefreshRate);
                }
            }
            catch (Exception ex)
            {
                EventLogger.Error($"Failed in Prescriber {ex.Message}");
            }
        }