コード例 #1
0
 protected override void DoOtherPreDestroy(bool disposing)
 {
     if (m_RfCommIf != null)
     {
         m_RfCommIf.Dispose(disposing);
     }
 }
コード例 #2
0
        //----
        protected override void OtherDispose(bool disposing)
        {
            WidcommRfcommInterface rfCommIf = m_RfCommIf;

            m_RfCommIf = null;
            Debug.Assert(IsDisposed, "NOT IsDisposed, but just set it so!");
            if (rfCommIf == null)
            {
                //Debug.Fail("WidcommBluetoothListener not started (disposing: " +
                //    disposing + ")."); // TODO (Remove this before release).
                return;
            }
            rfCommIf.Dispose(disposing);
        }