Make worker delay configurable via appsettings.json

Refactored Worker to accept IConfiguration and read the delay interval from "Worker:DelayMilliseconds" in appsettings.json, replacing the previously hardcoded value. This allows the worker execution interval to be configured without code changes. Added a minimum delay safeguard and updated appsettings.json accordingly.
This commit is contained in:
2026-02-23 17:17:27 +01:00
parent c93c32307a
commit eb46590c1d
2 changed files with 7 additions and 2 deletions

View File

@@ -5,5 +5,8 @@
"Microsoft.AspNetCore": "Warning"
}
},
"Worker": {
"DelayMilliseconds": 1000
},
"AllowedHosts": "*"
}