protected async Task Parse(IEnumerable <Article> articles) { var counter = 0; var count = articles.Count(); articles = _articleRepository.FilterParsedArticles(articles, _site); foreach (var article in articles) { try { var art = await Parse(article); _articleRepository.Add(art, _site.Id); await _articleRepository.Save(); } catch { } Console.WriteLine($"{counter++} av {count}"); } //var tasks = _articleRepository.FilterParsedArticles(articles).Select(Parse).ToArray(); //return await Task.WhenAll(tasks); }