public DownloadEpisodeAsync ( Episode episode ) : System.Threading.Tasks.Task | ||
episode | Episode | |
Результат | System.Threading.Tasks.Task |
public void TestDownload() { var localStorage = new LocalPodcastService("podcasts.json"); var feedParser = new FeedParserService(); var fileManager = new FileDownloadService(); var podcastService = new PodcastService(feedParser, localStorage, fileManager); var podcastFromService = podcastService.GetPodcastAsync("http://monstercat.com/podcast/feed.xml").Result; podcastService.DownloadEpisodeAsync(podcastFromService.Episodes.OrderByDescending(e => e.Published).ToList()[0]).Wait(); }