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