protected virtual async Task <bool> DownloadBinaryFile(string fileLocation, string url, CancellationToken ct) { try { return(await ThrottledStream.DownloadFileWithResumeAsync(url, fileLocation, shellService.Settings, ct)); } catch (IOException ex) when((ex.HResult & 0xFFFF) == 0x27 || (ex.HResult & 0xFFFF) == 0x70) { Logger.Error("ManagerController:Download: {0}", ex); shellService.ShowError(ex, Resources.DiskFull); crawlerService.StopCommand.Execute(null); return(false); } catch { return(false); } }