public void StopInquiry()
 {
     WidcommPortSingleThreader.MiscNoReturnCommand cmd = _st.AddCommand(
         new WidcommPortSingleThreader.MiscNoReturnCommand(delegate {
         _child.StopInquiry();
     }));
     cmd.WaitCompletion();
 }
Ejemplo n.º 2
0
 public void Destroy(bool disposing)
 {
     WidcommPortSingleThreader.MiscNoReturnCommand cmd = _st.AddCommand(
         new WidcommPortSingleThreader.MiscNoReturnCommand(delegate {
         _child.Destroy(disposing);
     }));
     cmd.WaitCompletion(disposing);
 }
Ejemplo n.º 3
0
 protected override void DoPortDestroy(bool disposing)
 {
     if (_singleThreader != null)
     {
         ThreadStart dlgt = delegate { m_port.Destroy(); };
         WidcommPortSingleThreader.MiscNoReturnCommand cmd = AddCommand(
             new WidcommPortSingleThreader.MiscNoReturnCommand(dlgt));
         cmd.WaitCompletion(disposing);
     }
     else
     {
         m_port.Destroy();
     }
 }
 public void Destroy(bool disposing)
 {
     if (!disposing) // If Finalizing, may be that the thread is dead.
     {
         return;
     }
     if (!WidcommBtInterface.IsWidcommSingleThread(_st))
     {
         WidcommPortSingleThreader.MiscNoReturnCommand cmd = _st.AddCommand(
             new WidcommPortSingleThreader.MiscNoReturnCommand(delegate {
             _child.Destroy(disposing);
         }));
         cmd.WaitCompletion();
     }
     else
     {
         _child.Destroy(disposing);
     }
 }