From c25dcede5ff557981cafb5342b49db4f8cb32f3f Mon Sep 17 00:00:00 2001 From: qi_0527 Date: Fri, 25 Oct 2024 23:59:12 +0800 Subject: [PATCH] Second upload --- WebApi_data_value/Services/BackgroundService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebApi_data_value/Services/BackgroundService.cs b/WebApi_data_value/Services/BackgroundService.cs index ad67e4d..08e2ddb 100644 --- a/WebApi_data_value/Services/BackgroundService.cs +++ b/WebApi_data_value/Services/BackgroundService.cs @@ -27,7 +27,7 @@ public class ParkingService : BackgroundService await PerformParkingCheckAsync(stoppingToken); while (!stoppingToken.IsCancellationRequested) { - await Task.Delay(TimeSpan.FromSeconds(50), stoppingToken); // 每50秒執行 + await Task.Delay(TimeSpan.FromSeconds(60), stoppingToken); // 每60秒執行 await PerformParkingCheckAsync(stoppingToken); } }