15 lines
456 B
C#
Raw Normal View History

2025-05-27 14:27:50 +08:00
using JiShe.IoT.Jobs;
2025-03-11 10:24:11 +08:00
2025-05-27 14:27:50 +08:00
namespace JiShe.IoT.Extensions.Hangfire
2025-03-11 10:24:11 +08:00
{
public static class RecurringJobsExtensions
{
public static void CreateRecurringJob(this ApplicationInitializationContext context)
{
2025-11-07 11:48:22 +08:00
//RecurringJob.AddOrUpdate<GCCollectJob>("测试Job", e => e.ExecuteAsync(), CronType.Minute(1), new RecurringJobOptions()
//{
// TimeZone = TimeZoneInfo.Local
//});
2025-03-11 10:24:11 +08:00
}
}
}