3 instantiations of CheckFactoryContext
Microsoft.Build (3)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (3)
180
_checkRegistry.Add(new
CheckFactoryContext
(
190
_checkRegistry.Add(new
CheckFactoryContext
(
220
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
>();
214
List<
CheckFactoryContext
> invalidChecksToRemove = new();
220
var
checkFactoryContext = new CheckFactoryContext(
250
private void SetupSingleCheck(
CheckFactoryContext
checkFactoryContext, string projectFullPath)
337
List<
CheckFactoryContext
> invalidChecksToRemove = new();
338
foreach (
CheckFactoryContext
checkFactoryContext in _checkRegistry)
362
private void RemoveInvalidChecks(List<
CheckFactoryContext
> checksToRemove, ICheckContext checkContext)
364
foreach (
var
checkToRemove in checksToRemove)
377
var
checkFactory = _checkRegistry.FirstOrDefault(c => c.MaterializedCheck == check);
389
foreach (
var
throttledCheck in throttledChecks)
396
private void RemoveCheck(
CheckFactoryContext
checkToRemove)
398
var tempColl = new ConcurrentBag<
CheckFactoryContext
>();
401
while (_checkRegistry.TryTake(out
var
item))
422
foreach (
var
item in tempColl)
515
foreach (
CheckFactoryContext
checkFactoryContext in _checkRegistry)