Пример #1
0
        public IObservable <BitmapImage> FetchImageForAlbum(Song song)
        {
            var rq = new RestRequest(String.Format("images/art/{0}.png", song.id));

            var fullUrl = client.BuildUri(rq).ToString();

            this.Log().Info("Fetching URL for image: {0}", fullUrl);
            return(cache.LoadImageFromUrl(fullUrl));
        }