コード例 #1
0
        public async Task ClearQueueAsync()
        {
            if (PlaybackQueue.Count == 0)
            {
                return;
            }

            await _sqlService.DeleteTableAsync <QueueSong>();

            _lookupMap.Clear();
            PlaybackQueue.Clear();
        }
コード例 #2
0
        public async Task ClearQueueAsync()
        {
            if (PlaybackQueue.Count == 0)
            {
                return;
            }

            await _bgSqlService.DeleteTableAsync <QueueSong>();

            _lookupMap.Clear();
            await _dispatcher.RunAsync(
                () =>
            {
                PlaybackQueue.Clear();
                ShufflePlaybackQueue.Clear();
            });
        }