增加动态配置各项参数
This commit is contained in:
@@ -176,13 +176,13 @@ namespace BLW_Log
|
||||
|
||||
|
||||
//<2F><>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD>
|
||||
var jobKey5 = new JobKey("BuTingShengJi");
|
||||
q.AddJob<ShengJiCaoZuoA>(opts => opts.WithIdentity(jobKey5));
|
||||
q.AddTrigger(opts => opts
|
||||
.ForJob(jobKey5)
|
||||
.WithIdentity("BuTingShengJi-trigger")
|
||||
.StartAt(DateTimeOffset.Now.AddMinutes(1))
|
||||
);
|
||||
//var jobKey5 = new JobKey("BuTingShengJi");
|
||||
//q.AddJob<ShengJiCaoZuoA>(opts => opts.WithIdentity(jobKey5));
|
||||
//q.AddTrigger(opts => opts
|
||||
// .ForJob(jobKey5)
|
||||
// .WithIdentity("BuTingShengJi-trigger")
|
||||
// .StartAt(DateTimeOffset.Now.AddMinutes(1))
|
||||
//);
|
||||
|
||||
});
|
||||
builder.Services.AddQuartzHostedService(q => q.WaitForJobsToComplete = true);
|
||||
|
||||
Reference in New Issue
Block a user