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); }
public void Download(PathFilePair pair) { _downloadActionBlock.Post(pair); }