示例#1
0
        public async Task CancelDownload()
        {
            if (DownloadCancellation != null && DownloadCancellation.Token.CanBeCanceled)
            {
                IsDownloading = false;
                Downloaded    = false;
                MP3FileName   = null;
                DownloadCancellation.Cancel();
                DownloadCancellation = null;

                GC.Collect();

                DownloadUpdateCancellation.Cancel();
                DownloadUpdateCancellation = null;
                await Mp3File.DeleteAsync();

                MixDataHandler.instance.UpdateMix(this);
            }
        }