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