1. 入门案例

using Quartz;
using Quartz.Impl;

 public class PrintTime : IJob
    {
        public Task Execute(IJobExecutionContext context)
        {
            return Task.Factory.StartNew(new Action(() => Console.WriteLine($"当前时间: {DateTime.Now.ToString()}")));
        }
    }
View Code

相关文章:

  • 2021-11-03
  • 2021-12-09
  • 2022-01-07
  • 2021-10-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-02
  • 2021-09-28
  • 2021-07-30
  • 2022-12-23
相关资源
相似解决方案