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:
@@ -13,5 +13,6 @@
|
||||
"RecAction": {
|
||||
"MaxConcurrentInvocations": 5
|
||||
},
|
||||
"AddedWho": "ReC.API"
|
||||
"AddedWho": "ReC.API",
|
||||
"FakeProfileId": 2
|
||||
}
|
||||
Reference in New Issue
Block a user