Example #1
0
 public void stubStop()
 {
     SPH_Running = false;
     try {
         sp.Close();
     } catch (Exception) { }
     SPH_Thread.Join();
 }
Example #2
0
 public void stubStart()
 {
     initPort();
     sp.Open();
     SPH_Running     = true;
     this.SPH_Thread = new Thread(new ThreadStart(this.Read));
     SPH_Thread.Start();
 }
Example #3
0
 public void stubStart()
 {
     try {
         initPort();
         sp.Open();
         SPH_Running     = true;
         this.SPH_Thread = new Thread(new ThreadStart(this.Read));
         SPH_Thread.Start();
     } catch (Exception) {}
 }
Example #4
0
 public void stubStop()
 {
     lock (this.syncLock) {
         SPH_Running = false;
     }
     try {
         // wake up the RBA_Stub thread if it's sleeping
         // between sequential messages
         this.sleeper.Set();
         // wait for the thread to finish
         SPH_Thread.Join();
     } catch (Exception) { }
 }
Example #5
0
 public void stubStart()
 {
     if (this.emv_buttons != RbaButtons.None)
     {
         try {
             initPort();
             sp.Open();
             SPH_Running           = true;
             this.bufferedCardType = "";
             this.sleeper.Reset();
             this.SPH_Thread = new Thread(new ThreadStart(this.Read));
             SPH_Thread.Start();
         } catch (Exception) {}
     }
 }