public void Close() { if (m_Connection != null && m_Connection.State == ConnectionState.Open) { m_Connection.Close(); } _profilesService.Dispose(); _resultsService.Dispose(); _syncService.Dispose(); }
public void Dispose() { _profilesService?.Dispose(); _resultsService?.Dispose(); if (_connection != null && _connection.State == ConnectionState.Open) { _connection.Close(); _connection.Dispose(); } }