static void Connection_Disposed(object sender, EventArgs e) { lock (SyncRoot) { _connectionCounter --; } }