Commit 554b953
authored
Refactor Routes to use ImmutableArray and move caching to InitializeRoutesFromResource (#182)
- Change _routes from ImmutableDictionary to ImmutableArray<Route>
- Move null-coalescing cache assignment from GetRoutes() to InitializeRoutesFromResource()
- Simplify JSON deserialization with throw expression1 parent 0f202be commit 554b953
File tree
3 files changed
+7
-37
lines changed- src
- Devlead.Testing.MockHttp
3 files changed
+7
-37
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 52 | + | |
58 | 53 | | |
59 | 54 | | |
60 | 55 | | |
61 | 56 | | |
62 | 57 | | |
63 | 58 | | |
64 | 59 | | |
65 | | - | |
| 60 | + | |
66 | 61 | | |
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
70 | 65 | | |
71 | 66 | | |
72 | 67 | | |
73 | | - | |
74 | | - | |
| 68 | + | |
75 | 69 | | |
76 | 70 | | |
77 | 71 | | |
| |||
0 commit comments