/// <summary> /// Connects to SignalR SongHub and subscribes to /// PlaylistChanged and SongChanged events. /// At the end it initializes the users playlists /// </summary> private async Task LoadData() { await _signalRService.ConnectAsync(); _signalRService.PlaylistChanged += PlaylistChanged; _signalRService.SongChanged += SongChanged; UserPlaylists = await _spotifyApi.GetPlaylistsAsync(); }