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