feat(config): add DexJobOptions configuration system and update placeholder pattern

- Add SectionName constant to DexJobOptions
- Update placeholder pattern to {#INT#BATCH_ID}
- Add DexJob configuration section to appsettings.json
- Add IConfiguration parameter to DependencyInjection for options binding
- Add Microsoft.Extensions.Options.ConfigurationExtensions package for .NET Framework 4.8
- Improve code documentation and move class into namespace
This commit is contained in:
2026-08-04 16:33:26 +02:00
parent 73db8fbd27
commit f75524f85d
4 changed files with 111 additions and 76 deletions

View File

@@ -23,5 +23,28 @@
},
"ProfileWorker": {
"IntervalMS": 60000
},
"DexJob": {
"Error": {
"MainQuery": {
"OnExecution": "Stop",
"IfNullOrWhiteSpace": "Ignore",
"OnUnexpectedResult": "Stop"
},
"CheckQuery": {
"OnExecution": "Stop",
"IfNullOrWhiteSpace": "Ignore",
"OnUnexpectedResult": "Stop"
},
"ReCRequest": {
"OnSending": "Stop"
}
},
"Placeholders": {
"BatchId": {
"Pattern": "{#INT#BATCH_ID}",
"RegexOptions": "IgnoreCase"
}
}
}
}