停用停車場更新服務

This commit is contained in:
jiahao 2023-09-27 16:16:20 +08:00
parent 9e5bdb2ea5
commit e4806ab0ac

View File

@ -122,10 +122,10 @@ namespace BackendWorkerService
//#endregion //#endregion
//#region 停車場管理(設定每 5秒 執行一次) //#region 停車場管理(設定每 5秒 執行一次)
services.AddSingleton<ParkingJob>(); //services.AddSingleton<ParkingJob>();
services.AddSingleton( //services.AddSingleton(
new JobSchedule(jobType: typeof(ParkingJob), cronExpression: configuration.GetValue<string>("BackgroundServiceCron:ParkingJob")) //new JobSchedule(jobType: typeof(ParkingJob), cronExpression: configuration.GetValue<string>("BackgroundServiceCron:ParkingJob"))
); //);
//#endregion //#endregion
//#region 電錶歸檔(設定每 小時 執行一次) //#region 電錶歸檔(設定每 小時 執行一次)