public void Disconnect() { lock (m_table) if (IsConnected) { if (m_cxnCount == 1) { m_table.Disconnect(); } --m_cxnCount; } ProvidersTracker.UnregisterProvider(this); }