/// <summary> /// Plays the newly selected track /// </summary> private async void PlayTrack(object obj) { int indexOfTrack = Tracks.items.IndexOf(SelectedTrack); CurrentlyPlaying newSong = await _spotifyApi.PlaySongAsync(SelectedPlaylist.uri, indexOfTrack); await _signalRService.SendSongChangedAsync(newSong); }