Esempio n. 1
0
 public void stubStop()
 {
     SPH_Running = false;
     try {
         sp.Close();
     } catch (Exception) { }
     SPH_Thread.Join();
 }
Esempio n. 2
0
 public void stubStart()
 {
     initPort();
     sp.Open();
     SPH_Running     = true;
     this.SPH_Thread = new Thread(new ThreadStart(this.Read));
     SPH_Thread.Start();
 }
Esempio n. 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) {}
 }
Esempio n. 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) { }
 }
Esempio n. 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) {}
     }
 }