예제 #1
0
 private async Task HandleFileDownload(PathFilePair pair)
 {
     Log.Debug("Downloading {0} to {1}", pair.File.Name, pair.Path);
     try
     {
         await _downloader.Download(pair.Path, pair.File);
     }
     catch (Exception ex)
     {
         Log.Debug("Exception Occurred: " + ex.ToString());
     }
     Log.Debug("Download complete: {0}", pair.File.Name);
 }
예제 #2
0
 public void Download(PathFilePair pair)
 {
     _downloadActionBlock.Post(pair);
 }