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