Move AddedWho config to RecActionOptions and refactor usage
Centralize AddedWho under RecAction in appsettings.json and add it to RecActionOptions. Update InvokeRecActionViewCommandHandler to use IOptions<RecActionOptions> for strongly-typed configuration access, replacing previous config-based retrieval. Removes global AddedWho property for improved maintainability.
This commit is contained in:
@@ -2,4 +2,5 @@
|
||||
|
||||
public class RecActionOptions
|
||||
{
|
||||
public string AddedWho { get; set; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user