/// <summary> /// Loads new data to provided <see cref="Asset"/>. /// </summary> /// <param name="asset">Object that will be loaded with data.</param> /// <returns>Same object with modified properties.</returns> public Asset LoadData(Asset asset) { asset.Thumbnail = _thumbnailManager.Create(asset.Path); var(dimensions, size) = GetImageInfo(asset.Path); asset.Dimensions = dimensions; asset.FileSize = size; return(asset); }