protected override void DoOtherPreDestroy(bool disposing) { if (m_RfCommIf != null) { m_RfCommIf.Dispose(disposing); } }
//---- 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); }