From 4085946ed8f51d8c088dc726c24c8af8d0293f89 Mon Sep 17 00:00:00 2001 From: dev02 Date: Thu, 16 Jan 2025 15:07:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=93=E5=8B=95=E6=8E=92=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BackendWorkerService/Program.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/BackendWorkerService/Program.cs b/BackendWorkerService/Program.cs index 42b9c93..dbe3099 100644 --- a/BackendWorkerService/Program.cs +++ b/BackendWorkerService/Program.cs @@ -144,17 +144,17 @@ namespace BackendWorkerService //#endregion #region 定時取得氣象API - //services.AddSingleton(); - //services.AddSingleton( - //new JobSchedule(jobType: typeof(Quartz.Jobs.WeatherAPIJob), cronExpression: configuration.GetValue("BackgroundServiceCron:WeatherAPIJob")) - //); + services.AddSingleton(); + services.AddSingleton( + new JobSchedule(jobType: typeof(Quartz.Jobs.WeatherAPIJob), cronExpression: configuration.GetValue("BackgroundServiceCron:WeatherAPIJob")) + ); #endregion #region 太陽能(設定每 小時 執行一次) - //services.AddSingleton(); - //services.AddSingleton( - //new JobSchedule(jobType: typeof(ArchiveSolarHourJob), cronExpression: configuration.GetValue("BackgroundServiceCron:ArchiveSolarHourJob")) - //); + services.AddSingleton(); + services.AddSingleton( + new JobSchedule(jobType: typeof(ArchiveSolarHourJob), cronExpression: configuration.GetValue("BackgroundServiceCron:ArchiveSolarHourJob")) + ); #endregion #region 太陽能(設定每 日 執行一次)