2.2 FramesOptions (frames.json binding + validator)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -76,7 +76,7 @@ Each type lives in `src/FrameProcessor/Domain/`. Tests in `tests/FrameProcessor.
|
||||
- Bound from `appsettings.json` via `builder.Services.Configure<T>(...)`.
|
||||
- Validate on startup (`ValidateOnStart` + `IValidateOptions<T>` or DataAnnotations).
|
||||
|
||||
### [ ] 2.2 `FramesOptions` (from `frames.json`)
|
||||
### [x] 2.2 `FramesOptions` (from `frames.json`)
|
||||
- Top-level `{ Frames: Frame[] }` POCO.
|
||||
- Register `frames.json` as an additional config source with `reloadOnChange: true`.
|
||||
- Bind via `IOptionsMonitor<FramesOptions>`.
|
||||
|
||||
Reference in New Issue
Block a user