3 instantiations of CheckFactoryContext
Microsoft.Build (3)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (3)
179
_checkRegistry.Add(new
CheckFactoryContext
(
189
_checkRegistry.Add(new
CheckFactoryContext
(
219
var checkFactoryContext = new
CheckFactoryContext
(
16 references to CheckFactoryContext
Microsoft.Build (16)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (16)
69
private readonly ConcurrentBag<
CheckFactoryContext
> _checkRegistry;
76
_checkRegistry = new ConcurrentBag<
CheckFactoryContext
>();
213
List<
CheckFactoryContext
> invalidChecksToRemove = new();
219
var
checkFactoryContext = new CheckFactoryContext(
249
private void SetupSingleCheck(
CheckFactoryContext
checkFactoryContext, string projectFullPath)
336
List<
CheckFactoryContext
> invalidChecksToRemove = new();
337
foreach (
CheckFactoryContext
checkFactoryContext in _checkRegistry)
361
private void RemoveInvalidChecks(List<
CheckFactoryContext
> checksToRemove, ICheckContext checkContext)
363
foreach (
var
checkToRemove in checksToRemove)
376
var
checkFactory = _checkRegistry.FirstOrDefault(c => c.MaterializedCheck == check);
388
foreach (
var
throttledCheck in throttledChecks)
395
private void RemoveCheck(
CheckFactoryContext
checkToRemove)
397
var tempColl = new ConcurrentBag<
CheckFactoryContext
>();
400
while (_checkRegistry.TryTake(out
var
item))
421
foreach (
var
item in tempColl)
514
foreach (
CheckFactoryContext
checkFactoryContext in _checkRegistry)