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");
        }
示例#3
0
 public override Task Execute(DateTime signalTime, CancellationToken token)
 {
     WebsiteUtils.Download(_siteName, FilePath);
     return(Task.CompletedTask);
 }