Commit e5c3dad
committed
fix: per-call MemoryCacheEntryOptions and add TokenLimitExceededException docs
- ResponseIdValidationService: create a fresh MemoryCacheEntryOptions per
RecordResponseId call instead of sharing a static instance. The shared
instance was safe today (no mutable lists populated) but is a latent hazard
if ExpirationTokens or PostEvictionCallbacks are ever added in future —
IMemoryCache reads those lists at Set time without defensive copying
- TokenLimitExceededException: add XML doc warning that catch-by-base-class
(InvalidOperationException) will silently capture this type1 parent 6400a67 commit e5c3dad
2 files changed
Lines changed: 10 additions & 4 deletions
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
| |||
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
36 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
0 commit comments