private void Normal(IList <string> websites) { foreach (var url in websites) { WebsiteDataModel wdm = DoDownload(url); Console.Write(wdm.ToString()); } }
private async Task AsyncAndWait(IList <string> websites) { foreach (var url in websites) { WebsiteDataModel wdm = await Task.Run(() => DoDownload(url)); Console.Write(wdm.ToString()); } }