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