15 lines
456 B
C#
15 lines
456 B
C#
using JiShe.IoT.Jobs;
|
|
|
|
namespace JiShe.IoT.Extensions.Hangfire
|
|
{
|
|
public static class RecurringJobsExtensions
|
|
{
|
|
public static void CreateRecurringJob(this ApplicationInitializationContext context)
|
|
{
|
|
//RecurringJob.AddOrUpdate<GCCollectJob>("测试Job", e => e.ExecuteAsync(), CronType.Minute(1), new RecurringJobOptions()
|
|
//{
|
|
// TimeZone = TimeZoneInfo.Local
|
|
//});
|
|
}
|
|
}
|
|
} |