啓動排程
This commit is contained in:
parent
595526ab15
commit
4085946ed8
@ -144,17 +144,17 @@ namespace BackendWorkerService
|
|||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
#region 定時取得氣象API
|
#region 定時取得氣象API
|
||||||
//services.AddSingleton<Quartz.Jobs.WeatherAPIJob>();
|
services.AddSingleton<Quartz.Jobs.WeatherAPIJob>();
|
||||||
//services.AddSingleton(
|
services.AddSingleton(
|
||||||
//new JobSchedule(jobType: typeof(Quartz.Jobs.WeatherAPIJob), cronExpression: configuration.GetValue<string>("BackgroundServiceCron:WeatherAPIJob"))
|
new JobSchedule(jobType: typeof(Quartz.Jobs.WeatherAPIJob), cronExpression: configuration.GetValue<string>("BackgroundServiceCron:WeatherAPIJob"))
|
||||||
//);
|
);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 太陽能(設定每 小時 執行一次)
|
#region 太陽能(設定每 小時 執行一次)
|
||||||
//services.AddSingleton<ArchiveSolarHourJob>();
|
services.AddSingleton<ArchiveSolarHourJob>();
|
||||||
//services.AddSingleton(
|
services.AddSingleton(
|
||||||
//new JobSchedule(jobType: typeof(ArchiveSolarHourJob), cronExpression: configuration.GetValue<string>("BackgroundServiceCron:ArchiveSolarHourJob"))
|
new JobSchedule(jobType: typeof(ArchiveSolarHourJob), cronExpression: configuration.GetValue<string>("BackgroundServiceCron:ArchiveSolarHourJob"))
|
||||||
//);
|
);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 太陽能(設定每 日 執行一次)
|
#region 太陽能(設定每 日 執行一次)
|
||||||
|
Loading…
Reference in New Issue
Block a user