1 instantiation of CheckWrapper
Microsoft.Build (1)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
778
return new
CheckWrapper
(ba, resultReporter);
47 references to CheckWrapper
Microsoft.Build (47)
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (35)
27
Action<List<
CheckWrapper
>?, ICheckContext> removeCheck)
48
internal void DeregisterCheck(
CheckWrapper
check)
67
private (
CheckWrapper
, Action<BuildCheckDataContext<T>>)[] _callbacks = [];
71
internal (
CheckWrapper
, Action<BuildCheckDataContext<T>>)[] Snapshot => Volatile.Read(ref _callbacks);
73
internal void Register(
CheckWrapper
check, Action<BuildCheckDataContext<T>> callback)
77
(
CheckWrapper
, Action<BuildCheckDataContext<T>>)[] callbacks = _callbacks;
84
internal void DeregisterCheck(
CheckWrapper
check)
88
(
CheckWrapper
, Action<BuildCheckDataContext<T>>)[] callbacks = _callbacks;
99
private readonly Action<List<
CheckWrapper
>?, ICheckContext> _removeChecks;
124
internal void RegisterEnvironmentVariableReadAction(
CheckWrapper
check, Action<BuildCheckDataContext<EnvironmentVariableCheckData>> environmentVariableAction)
127
internal void RegisterEvaluatedPropertiesAction(
CheckWrapper
check, Action<BuildCheckDataContext<EvaluatedPropertiesCheckData>> evaluatedPropertiesAction)
133
internal void RegisterParsedItemsAction(
CheckWrapper
check, Action<BuildCheckDataContext<ParsedItemsCheckData>> parsedItemsAction)
137
internal void RegisterEvaluatedItemsAction(
CheckWrapper
check, Action<BuildCheckDataContext<EvaluatedItemsCheckData>> parsedItemsAction)
140
internal void RegisterTaskInvocationAction(
CheckWrapper
check, Action<BuildCheckDataContext<TaskInvocationCheckData>> taskInvocationAction)
143
internal void RegisterPropertyReadAction(
CheckWrapper
check, Action<BuildCheckDataContext<PropertyReadData>> propertyReadAction)
146
internal void RegisterPropertyWriteAction(
CheckWrapper
check, Action<BuildCheckDataContext<PropertyWriteData>> propertyWriteAction)
149
internal void RegisterProjectRequestProcessingDoneAction(
CheckWrapper
check, Action<BuildCheckDataContext<ProjectRequestProcessingDoneData>> projectDoneAction)
152
internal void RegisterBuildFinishedAction(
CheckWrapper
check, Action<BuildCheckDataContext<BuildFinishedCheckData>> buildFinishedAction)
155
internal void RegisterProjectImportedAction(
CheckWrapper
check, Action<BuildCheckDataContext<ProjectImportedCheckData>> projectImportedAction)
159
CheckWrapper
wrappedCheck,
173
internal void DeregisterCheck(
CheckWrapper
check) => _globalCallbacks.DeregisterCheck(check);
178
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
185
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
194
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
202
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
210
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
218
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
226
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
234
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult>
242
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler)
248
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler)
255
Action<
CheckWrapper
, ICheckContext, CheckConfigurationEffective[], BuildCheckResult> resultHandler)
259
List<
CheckWrapper
>? checksToRemove = null;
260
(
CheckWrapper
, Action<BuildCheckDataContext<T>>)[] callbacksSnapshot = registeredCallbacks.Snapshot;
311
checksToRemove = checksToRemove ?? new List<
CheckWrapper
>();
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (6)
22
internal delegate
CheckWrapper
CheckWrapperFactory(ConfigurationContext configurationContext);
255
CheckWrapper
wrapper;
370
public void RemoveChecksAfterExecutedActions(List<
CheckWrapper
>? checksToRemove, ICheckContext checkContext)
374
foreach (
CheckWrapper
check in checksToRemove)
763
public
CheckWrapper
Initialize(Check ba, IResultReporter resultReporter, ConfigurationContext configContext)
781
public
CheckWrapper
? MaterializedCheck { get; set; }
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
242
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,