/// <summary> /// Disposes this object and properly cleans up resources. /// </summary> protected void Dispose(bool disposing) { if (!_isDisposed) { if (disposing) { _predictionRepository.Dispose(); _quoteService.Dispose(); _companyService.Dispose(); _datasetService.Dispose(); _networkConfigurationService.Dispose(); } _isDisposed = true; } }
public void Cleanup() { _repository.Dispose(); _service.Dispose(); }