public override async Task Execute(DateTime signalTime, IConsoleWrapper console, CancellationToken token) { await base.Execute(signalTime, console, token); var httpText = await WebsiteUtils.DownloadHttp(_path, token); await FileUtils.WriteToFile(_fileName, httpText, token); }
public DelayedJobDownloadWebsite(IConsoleWrapper console, string path, DateTime timeStart) : base(console, timeStart) { _path = WebsiteUtils.GetDownloadUrl(path); _fileName = FileUtils.GetPathSaveUrl(_path); }
public JobDownloadWebsite(IConsoleWrapper console, string path) : base(console) { _path = WebsiteUtils.GetDownloadUrl(path); _fileName = FileUtils.GetPathSaveUrl(_path); }