public async Task <SmartPlaylistDto[]> LoadPlaylistsAsync(Guid userId)
 {
     using (PerfLogger.Create("LoadPlaylistsFromStore"))
     {
         return(await _decorated.LoadPlaylistsAsync(userId).ConfigureAwait(false));
     }
 }
Ejemplo n.º 2
0
        public async Task <SmartPlaylistDto[]> LoadPlaylistsAsync(Guid userId)
        {
            var smartPlaylists = await _decorated.LoadPlaylistsAsync(userId).ConfigureAwait(false);

            smartPlaylists.ToList().ForEach(CleanupSmartPlaylist);

            return(smartPlaylists);
        }
        public async Task <object> Get(GetAppData request)
        {
            var user      = GetUser();
            var playlists = await _smartPlaylistStore.LoadPlaylistsAsync(user.Id).ConfigureAwait(false);

            return(new GetAppDataResponse
            {
                Playlists = playlists
            });
        }