Пример #1
0
        public async Task <string> SaveImage(FanartTVImageInfo image, string path, string fileName, CancellationToken cancellationToken)
        {
            var url = image.url;

            return(await _FanartTvWebClient.SaveFile(url, path, fileName, cancellationToken));
        }
Пример #2
0
 public async Task DownloadImage(FanartTVImageInfo image, Stream copyStream, CancellationToken cancellationToken)
 {
     var path = image.url;
     await _FanartTvWebClient.Download(path, copyStream, cancellationToken);
 }
Пример #3
0
 public Task <string> SaveImage(FanartTVImageInfo image, string path, string fileName)
 {
     return(SaveImage(image, path, fileName, CancellationToken.None));
 }
Пример #4
0
 public Task DownloadImage(FanartTVImageInfo image, Stream copyStream)
 {
     return(DownloadImage(image, copyStream, CancellationToken.None));
 }