private void WaitForPrescriberRecord() { Thread.CurrentThread.Name = "Prescriber"; try { var p = new PollPrescriber(MotSqlServer, _mutex, GatewayIp, GatewayPort); p.UseAscii = this.UseAscii; while (KeepRunning) { try { p.ReadPrescriberRecords(); } catch (RowNotInTableException) { ; } Thread.Sleep(RefreshRate); } Console.WriteLine("Prescriber thread exiting"); } catch (Exception ex) { EventLogger.Error($"Failed in Prescriber {ex.Message}"); } }
private void WaitForPrescriberRecord() { try { var p = new PollPrescriber(MotSqlServer, _mutex, GatewayIp, GatewayPort); while (KeepRunning) { p.ReadPrescriberRecords(); Thread.Sleep(RefreshRate); } } catch (Exception ex) { EventLogger.Error($"Failed in Prescriber {ex.Message}"); } }