Exemple #1
0
        private void WaitForStoreRecord()
        {
            Thread.CurrentThread.Name = "Store";

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

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

                    Thread.Sleep(RefreshRate);
                }

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

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