Commit ecea989
committed
fix: force parameterless ResponseIdValidationService ctor via factory; fix XML doc exception type
- Register ResponseIdValidationService via AddSingleton factory lambda
(_ => new ResponseIdValidationService()) so DI always calls the
parameterless ctor that creates the owned, size-limited MemoryCache.
Without this, ASP.NET Core DI prefers the IMemoryCache ctor (matching
the registered IMemoryCache from AddMemoryCache()), defeating the
dedicated cache design.
- Update CreateTokenAsync XML doc: references TokenLimitExceededException
instead of the base InvalidOperationException, so callers know the
concrete type to catch.1 parent f5ad578 commit ecea989
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments