void Deinit() { if (_service != null) { try { Subscribe(false); _service.Shutdown(); _service = null; } catch (Exception e) { ReportException(e); return; } } }
void InitM3OrangeUHFGun() { Deinit(); try { var reader = new RFIDApplied.InterrogatorLib.M3ReaderGunLowLevel(); reader.Initialize(); _service = new ReaderService(reader); Subscribe(true); } catch (Exception e) { _service = null; ReportException(e); } }