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;
 }
示例#3
0
 public CachingState(IPodcastItem item, IBackgroundDownloader downloader, IPodcastsStorage storage)
 {
     _item = item;
     _downloader = downloader;
     _storage = storage;
 }