public Uri ResolveUriForPodcast(IPodcastItem podcast) { var path = podcast.GetStorageUrl(); return new Uri(path, UriKind.Relative); }
public async Task<Uri> MoveFromTransferTempStorage(Uri tempUri, IPodcastItem podcast) { var targetUri = ResolveUriForPodcast(podcast); await _storage.Move(tempUri.OriginalString, targetUri.OriginalString).ConfigureAwait(false); return targetUri; }
public CachingState(IPodcastItem item, IBackgroundDownloader downloader, IPodcastsStorage storage) { _item = item; _downloader = downloader; _storage = storage; }