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