You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
520 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Quartz;
using Quartz.Core;
namespace TopshelfStudy.NetCoreDemo
{
public class JobDemo : IJob
{
NLog.Logger Logger = NLog.LogManager.GetCurrentClassLogger();
public async Task Execute(IJobExecutionContext context)
{
//模拟业务操作
Logger.Info($"执行作业:测试作业");
await Task.Delay(0);
}
}
}