public void CancelDownload(QueuedDownload download) { DownloadManager.StopDownload(download).Subscribe( dl => { using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication()) { string path = Utils.MediaFilePath(LoggedUser, dl); if (isf.FileExists(path)) { isf.DeleteFile(path); } } }); LoggedUser.Downloads.Remove(download); App.Engine.StatisticsManager.LogDownloadRemove(download); }
public void StopDownload(QueuedDownload download) { DownloadManager.StopDownload(download); }