@@ -26,7 +26,10 @@ public BuildCheckCentralContext(
26
26
27
27
private record CallbackRegistry (
28
28
List < ( CheckWrapper , Action < BuildCheckDataContext < EvaluatedPropertiesCheckData > > ) > EvaluatedPropertiesActions ,
29
+ #pragma warning disable CS0618 // Type or member is obsolete
29
30
List < ( CheckWrapper , Action < BuildCheckDataContext < ParsedItemsCheckData > > ) > ParsedItemsActions ,
31
+ #pragma warning restore CS0618 // Type or member is obsolete
32
+ List < ( CheckWrapper , Action < BuildCheckDataContext < EvaluatedItemsCheckData > > ) > EvaluatedItemsActions ,
30
33
List < ( CheckWrapper , Action < BuildCheckDataContext < TaskInvocationCheckData > > ) > TaskInvocationActions ,
31
34
List < ( CheckWrapper , Action < BuildCheckDataContext < PropertyReadData > > ) > PropertyReadActions ,
32
35
List < ( CheckWrapper , Action < BuildCheckDataContext < PropertyWriteData > > ) > PropertyWriteActions ,
@@ -36,14 +39,15 @@ private record CallbackRegistry(
36
39
List < ( CheckWrapper , Action < BuildCheckDataContext < ProjectImportedCheckData > > ) > ProjectImportedCheckDataActions )
37
40
{
38
41
public CallbackRegistry ( )
39
- : this ( [ ] , [ ] , [ ] , [ ] , [ ] , [ ] , [ ] , [ ] , [ ] )
42
+ : this ( [ ] , [ ] , [ ] , [ ] , [ ] , [ ] , [ ] , [ ] , [ ] , [ ] )
40
43
{
41
44
}
42
45
43
46
internal void DeregisterCheck ( CheckWrapper check )
44
47
{
45
48
EvaluatedPropertiesActions . RemoveAll ( a => a . Item1 == check ) ;
46
49
ParsedItemsActions . RemoveAll ( a => a . Item1 == check ) ;
50
+ EvaluatedItemsActions . RemoveAll ( a => a . Item1 == check ) ;
47
51
PropertyReadActions . RemoveAll ( a => a . Item1 == check ) ;
48
52
PropertyWriteActions . RemoveAll ( a => a . Item1 == check ) ;
49
53
ProjectRequestProcessingDoneActions . RemoveAll ( a => a . Item1 == check ) ;
@@ -78,9 +82,14 @@ internal void RegisterEvaluatedPropertiesAction(CheckWrapper check, Action<Build
78
82
// (it was being communicated via MSBUILDLOGPROPERTIESANDITEMSAFTEREVALUATION)
79
83
=> RegisterAction ( check , evaluatedPropertiesAction , _globalCallbacks . EvaluatedPropertiesActions ) ;
80
84
85
+ #pragma warning disable CS0618 // Type or member is obsolete
81
86
internal void RegisterParsedItemsAction ( CheckWrapper check , Action < BuildCheckDataContext < ParsedItemsCheckData > > parsedItemsAction )
87
+ #pragma warning restore CS0618 // Type or member is obsolete
82
88
=> RegisterAction ( check , parsedItemsAction , _globalCallbacks . ParsedItemsActions ) ;
83
89
90
+ internal void RegisterEvaluatedItemsAction ( CheckWrapper check , Action < BuildCheckDataContext < EvaluatedItemsCheckData > > parsedItemsAction )
91
+ => RegisterAction ( check , parsedItemsAction , _globalCallbacks . EvaluatedItemsActions ) ;
92
+
84
93
internal void RegisterTaskInvocationAction ( CheckWrapper check , Action < BuildCheckDataContext < TaskInvocationCheckData > > taskInvocationAction )
85
94
=> RegisterAction ( check , taskInvocationAction , _globalCallbacks . TaskInvocationActions ) ;
86
95
@@ -134,13 +143,23 @@ internal void RunEvaluatedPropertiesActions(
134
143
=> RunRegisteredActions ( _globalCallbacks . EvaluatedPropertiesActions , evaluatedPropertiesCheckData , checkContext , resultHandler ) ;
135
144
136
145
internal void RunParsedItemsActions (
146
+ #pragma warning disable CS0618 // Type or member is obsolete
137
147
ParsedItemsCheckData parsedItemsCheckData ,
148
+ #pragma warning restore CS0618 // Type or member is obsolete
138
149
ICheckContext checkContext ,
139
150
Action < CheckWrapper , ICheckContext , CheckConfigurationEffective [ ] , BuildCheckResult >
140
151
resultHandler )
141
152
=> RunRegisteredActions ( _globalCallbacks . ParsedItemsActions , parsedItemsCheckData ,
142
153
checkContext , resultHandler ) ;
143
154
155
+ internal void RunEvaluatedItemsActions (
156
+ EvaluatedItemsCheckData evaluatedItemsCheckData ,
157
+ ICheckContext checkContext ,
158
+ Action < CheckWrapper , ICheckContext , CheckConfigurationEffective [ ] , BuildCheckResult >
159
+ resultHandler )
160
+ => RunRegisteredActions ( _globalCallbacks . EvaluatedItemsActions , evaluatedItemsCheckData ,
161
+ checkContext , resultHandler ) ;
162
+
144
163
internal void RunTaskInvocationActions (
145
164
TaskInvocationCheckData taskInvocationCheckData ,
146
165
ICheckContext checkContext ,
0 commit comments