Exemplo n.º 1
0
 /// <summary>
 /// Increases the priority of thumbnail processing for the given assets, if they are queued for thumbnail processing.
 /// This methods has no effect for assets that are not currently in the thumbnail processing queue.
 /// </summary>
 /// <param name="assets"></param>
 public void IncreaseThumbnailPriority(IEnumerable <AssetViewModel> assets)
 {
     if (thumbnailService != null)
     {
         var thumbnailsToRefresh = new HashSet <AssetItem>();
         thumbnailsToRefresh.AddRange(assets.Select(x => x.AssetItem));
         thumbnailService.IncreaseThumbnailPriority(thumbnailsToRefresh);
     }
 }