public override Task Execute(DateTime signalTime, CancellationToken token) { if (token.IsCancellationRequested) { return(Task.CompletedTask); } WebsiteUtils.Download(WebsitePath, FilePath); return(Task.CompletedTask); }
public override async Task Execute(DateTime signalTime, CancellationToken token) { await base.Execute(signalTime, token); WebsiteUtils.Download(_siteName, "onliner.by"); }
public override Task Execute(DateTime signalTime, CancellationToken token) { WebsiteUtils.Download(_siteName, FilePath); return(Task.CompletedTask); }