public async Task <Domain.SmartPlaylist[]> GetAllUpdateableSmartPlaylistsAsync() { using (PerfLogger.Create("GetAllUpdateableSmartPlaylists")) { return(await _decorated.GetAllUpdateableSmartPlaylistsAsync().ConfigureAwait(false)); } }
public async Task HandleAsync(UpdateAllSmartPlaylistsCommand message) { var smartPlaylists = await _smartPlaylistProvider.GetAllUpdateableSmartPlaylistsAsync().ConfigureAwait(false); var smartPlaylistToUpdateWithNewItems = GetSmartPlaylistToUpdateWithNewItems(message, smartPlaylists); UpdateSmartPlaylistsWithAllUserItems(smartPlaylists.Except(smartPlaylistToUpdateWithNewItems)); if (smartPlaylistToUpdateWithNewItems.Any()) { await UpdateSmartPlaylistsWithNewItemsAsync(message.Items, smartPlaylistToUpdateWithNewItems) .ConfigureAwait(false); } }