1 instantiation of CheckWrapper
Microsoft.Build (1)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
779
return new
CheckWrapper
(ba, resultReporter);
47 references to CheckWrapper
Microsoft.Build (47)
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (35)
28
Action<List<
CheckWrapper
>?, ICheckContext> removeCheck)
49
internal void DeregisterCheck(
CheckWrapper
check)
68
private (
CheckWrapper
, Action<BuildCheckDataContext<T>>)[] _callbacks = [];
72
internal (
CheckWrapper
, Action<BuildCheckDataContext<T>>)[] Snapshot => Volatile.Read(ref _callbacks);
74
internal void Register(
CheckWrapper
check, Action<BuildCheckDataContext<T>> callback)
78
(
CheckWrapper
, Action<BuildCheckDataContext<T>>)[] callbacks = _callbacks;
85
internal void DeregisterCheck(
CheckWrapper
check)
89
(
CheckWrapper
, Action<BuildCheckDataContext<T>>)[] callbacks = _callbacks;
100
private readonly Action<List<
CheckWrapper
>?, ICheckContext> _removeChecks;
125
internal void RegisterEnvironmentVariableReadAction(
CheckWrapper
check, Action<BuildCheckDataContext<EnvironmentVariableCheckData>> environmentVariableAction)
128
internal void RegisterEvaluatedPropertiesAction(
CheckWrapper
check, Action<BuildCheckDataContext<EvaluatedPropertiesCheckData>> evaluatedPropertiesAction)
134
internal void RegisterParsedItemsAction(
CheckWrapper
check, Action<BuildCheckDataContext<ParsedItemsCheckData>> parsedItemsAction)
138
internal void RegisterEvaluatedItemsAction(
CheckWrapper
check, Action<BuildCheckDataContext<EvaluatedItemsCheckData>> parsedItemsAction)
141
internal void RegisterTaskInvocationAction(
CheckWrapper
check, Action<BuildCheckDataContext<TaskInvocationCheckData>> taskInvocationAction)
144
internal void RegisterPropertyReadAction(
CheckWrapper
check, Action<BuildCheckDataContext<PropertyReadData>> propertyReadAction)
147
internal void RegisterPropertyWriteAction(
CheckWrapper
check, Action<BuildCheckDataContext<PropertyWriteData>> propertyWriteAction)
150
internal void RegisterProjectRequestProcessingDoneAction(
CheckWrapper
check, Action<BuildCheckDataContext<ProjectRequestProcessingDoneData>> projectDoneAction)
153
internal void RegisterBuildFinishedAction(
CheckWrapper
check, Action<BuildCheckDataContext<BuildFinishedCheckData>> buildFinishedAction)
156
internal void RegisterProjectImportedAction(
CheckWrapper
check, Action<BuildCheckDataContext<ProjectImportedCheckData>> projectImportedAction)
160
CheckWrapper
wrappedCheck,
174
internal void DeregisterCheck(
CheckWrapper
check) => _globalCallbacks.DeregisterCheck(check);
179
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
186
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
195
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
203
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
211
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
219
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
227
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
235
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
243
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler)
249
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler)
256
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler)
260
List<
CheckWrapper
>? checksToRemove = null;
261
(
CheckWrapper
, Action<BuildCheckDataContext<T>>)[] callbacksSnapshot = registeredCallbacks.Snapshot;
312
checksToRemove = checksToRemove ?? new List<
CheckWrapper
>();
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (6)
22
internal delegate
CheckWrapper
CheckWrapperFactory(ConfigurationContext configurationContext);
256
CheckWrapper
wrapper;
371
public void RemoveChecksAfterExecutedActions(List<
CheckWrapper
>? checksToRemove, ICheckContext checkContext)
375
foreach (
CheckWrapper
check in checksToRemove)
764
public
CheckWrapper
Initialize(Check ba, IResultReporter resultReporter, ConfigurationContext configContext)
782
public
CheckWrapper
? MaterializedCheck { get; set; }
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
246
CheckWrapper
checkWrapper,
BuildCheck\Infrastructure\CheckRegistrationContext.cs (1)
9
internal sealed class CheckRegistrationContext(
CheckWrapper
checkWrapper, BuildCheckCentralContext buildCheckCentralContext)
BuildCheck\OM\BuildCheckDataContext.cs (4)
58
private readonly
CheckWrapper
_executionCheckWrapper;
61
private readonly Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> _resultHandler;
64
CheckWrapper
checkWrapper,
67
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler,