Commit 322e3bc
authored
TagHelperCollection Prelude: Support types and helpers (#12503)
| Prelude | [Part 1](#12504) | [Part
2](#12505) | [Part
3](#12506) | [Part
4](#12507) | [Part
5](#12509) |
This is a set of support utilities and helpers added as part of the
`TagHelperCollection` changes:
- Added `InterlockedOperations.Initialize(...)` overloads for lock free
initialization with a factory method.
(f3686aa)
- Added two `LazyValue` structs that use the new
`InterlockedOperations.Initialize(...)` overloads. These are useful for
lazily initializing a value without extra allocations or locks.
(81795f5)
- Added `OverloadResolutionPriorityAttribute` polyfill type.
(27ab174)
- Refactored `TagHelperCache` to extract `CleanableWeakCache<TKey,
TValue>`. This caches items as weak references. When the number of items
added reaches a configurable threshold, the cache is cleaned up, and any
dead weak references are removed.
(673a9b5)
----
CI Build:
https://dev.azure.com/dnceng/internal/_build/results?buildId=2842136&view=results
Toolset Run:
https://dev.azure.com/dnceng/internal/_build/results?buildId=2842197&view=resultsFile tree
8 files changed
+1686
-88
lines changed- src
- Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Utilities
8 files changed
+1686
-88
lines changedLines changed: 4 additions & 88 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 4 | | |
8 | | - | |
9 | 5 | | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
13 | | - | |
| 9 | + | |
14 | 10 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 11 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 12 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 13 | + | |
83 | 14 | | |
84 | | - | |
| 15 | + | |
| 16 | + | |
85 | 17 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 18 | | |
103 | 19 | | |
0 commit comments