Beispiel #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("start.");
            QuartzHelper.ExecuteInterval <DemoInterval>(10);

            string cronExpression = "0 25 16,18 * * ? ";   //每天的9点和16点执行任务

            QuartzHelper.ExecuteByCron <DemoByCron>(cronExpression);

            Console.ReadLine();
        }