예제 #1
0
 public async Task <AlbumSearchResult> AlbumSearchAsync(string artist, string album)
 {
     try {
         return(await _serviceClient.GetAsync <AlbumSearchResult>(_urlBuilder.BuildAlbumSearchUrl(artist, album)));
     }
     catch (Exception ex) {
         _logFactory.GetLogger(typeof(SearchService))
         .ErrorFormat(AlbumSearchErrorMessageFormat, artist, album, ex.Message);
         throw new SpotifyServiceException(
                   string.Format(AlbumSearchErrorMessageFormat, artist, album, ex.Message), ex);
     }
 }