CSharp-Single-EFCore/Bunny.Service/Job/HelloJob.cs

15 lines
326 B
C#
Raw Normal View History

using log4net;
using Quartz;
2024-08-12 23:49:09 +08:00
namespace Bunny.Service.Job;
public class HelloJob : IJob
{
private static readonly ILog Log = LogManager.GetLogger(typeof(HelloJob));
2024-08-12 23:49:09 +08:00
public Task Execute(IJobExecutionContext context)
{
Log.Debug("Hello World 的自动执行");
2024-08-12 23:49:09 +08:00
return Task.CompletedTask;
}
}