public async Task<Podcast> AddPodcastAsync(Uri podcastUri) { await LoadFileAsync(); var results = await EvaluatePodcastFeedAsync(podcastUri); if (results.RedirectUri != null) { podcastUri = results.RedirectUri; } var feed = results.Feed; var podcast = new Podcast { Title = feed.Title, Location = podcastUri, Image = feed.Image.Url, }; await SaveNewPodcastToFileAsync(podcast); using (var subscription = new SubscriptionService(new Uri("http://localhost:3333"), new BasicAuthStrategy("my_user", "password"))) { await subscription.PostSubscriptionAsync(podcast.Location.AbsoluteUri); } return podcast; }