예제 #1
0
 public void Close()
 {
     if (m_Connection != null && m_Connection.State == ConnectionState.Open)
     {
         m_Connection.Close();
     }
     _profilesService.Dispose();
     _resultsService.Dispose();
     _syncService.Dispose();
 }
예제 #2
0
        public void Dispose()
        {
            _profilesService?.Dispose();
            _resultsService?.Dispose();

            if (_connection != null && _connection.State == ConnectionState.Open)
            {
                _connection.Close();
                _connection.Dispose();
            }
        }