From e9649bd7f122694ba5d76aaf3f17668c352bcc0d Mon Sep 17 00:00:00 2001 From: dev02 Date: Tue, 6 Jun 2023 16:50:18 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=BE=8C=E5=8F=B0]=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=8E=92=E7=A8=8B=E9=96=8B=E5=95=93weather=20api=20=E6=8E=92?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BackendWorkerService/Program.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BackendWorkerService/Program.cs b/BackendWorkerService/Program.cs index 7521b31..e293df7 100644 --- a/BackendWorkerService/Program.cs +++ b/BackendWorkerService/Program.cs @@ -142,12 +142,12 @@ namespace BackendWorkerService ); #endregion - //#region 定時取得氣象API - //services.AddSingleton(); - //services.AddSingleton( - //new JobSchedule(jobType: typeof(Quartz.Jobs.WeatherAPIJob), cronExpression: configuration.GetValue("BackgroundServiceCron:WeatherAPIJob")) - //); - //#endregion + #region 定時取得氣象API + services.AddSingleton(); + services.AddSingleton( + new JobSchedule(jobType: typeof(Quartz.Jobs.WeatherAPIJob), cronExpression: configuration.GetValue("BackgroundServiceCron:WeatherAPIJob")) + ); + #endregion }).ConfigureLogging((hostContext, logFactory) => { IConfiguration configuration = hostContext.Configuration;