コード例 #1
0
 void Deinit()
 {
     if (_service != null)
     {
         try
         {
             Subscribe(false);
             _service.Shutdown();
             _service = null;
         }
         catch (Exception e)
         {
             ReportException(e);
             return;
         }
     }
 }
コード例 #2
0
        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);
            }
        }