• 大小: 1.51M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: C#  sql  c  Server  部署  

资源简介


资源截图

代码片段和文件信息

using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleSchedulerApp
{
    public class HelloJob : IJob
    {
        private string name = string.Empty;
        public void Execute(IJobExecutionContext context)
        {

            Console.WriteLine(“当前时间: {0}下一次触发时间:{1}“ DateTime.Now
                                                        context.NextFireTimeUtc?.LocalDateTime);

            Console.WriteLine(“休眠2s...“);
            System.Threading.Thread.Sleep(2000);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-05-28 17:36  SimpleSchedulerApp\
     文件       25174  2017-05-28 17:36  SimpleSchedulerApp\1.sql
     文件         189  2017-05-21 19:56  SimpleSchedulerApp\App.config
     文件         644  2017-05-28 17:23  SimpleSchedulerApp\HelloJob.cs
     文件        2916  2017-05-28 17:25  SimpleSchedulerApp\Program.cs
     目录           0  2017-05-21 19:56  SimpleSchedulerApp\Properties\
     文件        1344  2017-05-21 19:56  SimpleSchedulerApp\Properties\AssemblyInfo.cs
     文件        3772  2017-05-25 09:04  SimpleSchedulerApp\SimpleSchedulerApp.csproj
     目录           0  2017-05-28 18:00  SimpleSchedulerApp\bin\
     目录           0  2017-05-28 18:02  SimpleSchedulerApp\bin\Debug\
     文件      272384  2017-02-18 09:27  SimpleSchedulerApp\bin\Debug\C5.dll
     文件       10240  2016-10-11 10:50  SimpleSchedulerApp\bin\Debug\Common.Logging.Core.dll
     文件       44544  2016-10-11 10:50  SimpleSchedulerApp\bin\Debug\Common.Logging.dll
     文件      569344  2017-05-29 12:17  SimpleSchedulerApp\bin\Debug\Quartz.dll
     文件     1342976  2017-05-29 12:17  SimpleSchedulerApp\bin\Debug\Quartz.pdb
     文件     1042256  2017-05-29 12:17  SimpleSchedulerApp\bin\Debug\Quartz.xml
     文件        8192  2017-05-29 16:28  SimpleSchedulerApp\bin\Debug\SimpleSchedulerApp.exe
     文件         189  2017-05-21 19:56  SimpleSchedulerApp\bin\Debug\SimpleSchedulerApp.exe.config
     文件       15872  2017-05-29 16:28  SimpleSchedulerApp\bin\Debug\SimpleSchedulerApp.pdb
     文件       22696  2017-05-29 16:28  SimpleSchedulerApp\bin\Debug\SimpleSchedulerApp.vshost.exe
     文件         189  2017-05-21 19:56  SimpleSchedulerApp\bin\Debug\SimpleSchedulerApp.vshost.exe.config
     文件         490  2016-07-16 19:44  SimpleSchedulerApp\bin\Debug\SimpleSchedulerApp.vshost.exe.manifest
     目录           0  2017-05-28 17:23  SimpleSchedulerApp\bin\Debug - 副本\
     文件      272384  2017-02-18 09:27  SimpleSchedulerApp\bin\Debug - 副本\C5.dll
     文件       10240  2016-10-11 10:50  SimpleSchedulerApp\bin\Debug - 副本\Common.Logging.Core.dll
     文件       44544  2016-10-11 10:50  SimpleSchedulerApp\bin\Debug - 副本\Common.Logging.dll
     文件      569344  2017-05-28 17:23  SimpleSchedulerApp\bin\Debug - 副本\Quartz.dll
     文件     1342976  2017-05-28 17:23  SimpleSchedulerApp\bin\Debug - 副本\Quartz.pdb
     文件     1042256  2017-05-28 17:23  SimpleSchedulerApp\bin\Debug - 副本\Quartz.xml
     文件        8192  2017-05-28 17:23  SimpleSchedulerApp\bin\Debug - 副本\SimpleSchedulerApp.exe
     文件         189  2017-05-21 19:56  SimpleSchedulerApp\bin\Debug - 副本\SimpleSchedulerApp.exe.config
............此处省略15个文件信息

评论

共有 条评论