예제 #1
0
 public void Stop()
 {
     _wc.CancelAsync();
     _wc.Dispose();
     _xmlBuilder?.Stop();
     _xmlBuilder   = null;
     IsDownloading = false;
 }
예제 #2
0
 public void Stop(bool force = false)
 {
     _wc.CancelAsync();
     _wc.Dispose();
     if (force)
     {
         _xmlBuilder?.QuickStop();
     }
     else
     {
         _xmlBuilder?.Stop();
     }
     _xmlBuilder   = null;
     IsDownloading = false;
 }