예제 #1
0
        private void CrawlOnceUnknown(int maxCount)
        {
            var ids = _repository.GetUnknownIds(maxCount);

            if (ids.Any())
            {
                Log($"{ids.Count()} unknown boardgames.");
                var boardGames = _geekConnector.RetrieveBoardGames(ids).ToList();
                Log($"{boardGames.Count()} boardgames retrieved.");
                _repository.StoreBoardGames(boardGames);
                _repository.DeleteUnknownIds(ids);
            }
        }