|
|
@ -85,17 +85,17 @@ namespace DS.Module.QuartzModuleInstall
|
|
|
|
.WithCronSchedule(configuration["JobConfig:" + jobKey1.Name])
|
|
|
|
.WithCronSchedule(configuration["JobConfig:" + jobKey1.Name])
|
|
|
|
);
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
var jobKey2 = new JobKey(nameof(WSLWeeklyReportJob));
|
|
|
|
//var jobKey2 = new JobKey(nameof(WSLWeeklyReportJob));
|
|
|
|
services.AddQuartz(q =>
|
|
|
|
//services.AddQuartz(q =>
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
q.UseMicrosoftDependencyInjectionJobFactory();
|
|
|
|
// q.UseMicrosoftDependencyInjectionJobFactory();
|
|
|
|
q.AddJob<WSLWeeklyReportJob>(opts => opts.WithIdentity(jobKey2));
|
|
|
|
// q.AddJob<WSLWeeklyReportJob>(opts => opts.WithIdentity(jobKey2));
|
|
|
|
q.AddTrigger(opts => opts
|
|
|
|
// q.AddTrigger(opts => opts
|
|
|
|
.ForJob(jobKey2)
|
|
|
|
// .ForJob(jobKey2)
|
|
|
|
.WithIdentity(nameof(WSLWeeklyReportJob) + "-trigger")
|
|
|
|
// .WithIdentity(nameof(WSLWeeklyReportJob) + "-trigger")
|
|
|
|
.WithCronSchedule(configuration["JobConfig:" + jobKey2.Name])
|
|
|
|
// .WithCronSchedule(configuration["JobConfig:" + jobKey2.Name])
|
|
|
|
);
|
|
|
|
// );
|
|
|
|
});
|
|
|
|
//});
|
|
|
|
//var jobKey2 = new JobKey(nameof(BackgroundTaskJob));
|
|
|
|
//var jobKey2 = new JobKey(nameof(BackgroundTaskJob));
|
|
|
|
//services.AddQuartz(q =>
|
|
|
|
//services.AddQuartz(q =>
|
|
|
|
//{
|
|
|
|
//{
|
|
|
|