wxw
11 小时以前 fef4a39d606932ebb2f7ae7d58c8ddcdd3e3b9db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using Quartz;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
 
namespace Utility
{
    public class TestJob : IJob
    {
        public async Task Execute(IJobExecutionContext context)
        {
            Console.WriteLine($"【任务执行】:{DateTime.Now}");
            Console.WriteLine($"【触发时间】:{context.ScheduledFireTimeUtc?.LocalDateTime}");
            Console.WriteLine($"【下次触发时间】:{context.NextFireTimeUtc?.LocalDateTime}");
            await Task.CompletedTask;
        }
 
 
    }
}