Beispiel #1
0
 /// <summary>
 /// 取消下载
 /// </summary>
 public void CancelDownload()
 {
     if (downloadOperation != null)
     {
         BackgroundDownloads.CancelDownload(downloadOperation);
     }
 }
Beispiel #2
0
 public void CancelDownload_CalledWithNull_DoesntThrow()
 {
     BackgroundDownloads.CancelDownload(null);
 }