Refactor to use configurable FakeProfileId

Replaced hardcoded FakeProfileId with a dynamic value retrieved
from the configuration using a new GetFakeProfileId extension
method. Updated OutResController and RecActionController to
inject IConfiguration and use the new method. Added a new
HttpGet endpoint in OutResController for fake profile queries.

Modified appsettings.json to include a FakeProfileId setting
with a default value of 2. Introduced ConfigurationExtensions
to centralize configuration access logic, improving code
maintainability and flexibility.
This commit is contained in:
2025-12-04 11:14:37 +01:00
parent 906d99105c
commit f4390d992a
4 changed files with 21 additions and 10 deletions

View File

@@ -13,5 +13,6 @@
"RecAction": {
"MaxConcurrentInvocations": 5
},
"AddedWho": "ReC.API"
"AddedWho": "ReC.API",
"FakeProfileId": 2
}