5 instantiations of ItemBucket
Microsoft.Build (3)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (2)
177var bucket = new ItemBucket(null, null, lookup, buckets.Count); 342matchingBucket = new ItemBucket(itemListsToBeBatched.Keys, itemMetadataValues, lookup, buckets.Count);
BackEnd\Components\RequestBuilder\ItemBucket.cs (1)
146ItemBucket bucket = new ItemBucket(metadata);
Microsoft.Build.Engine.UnitTests (2)
BackEnd\TargetUpToDateChecker_Tests.cs (1)
612ItemBucket itemBucket = new ItemBucket(null, null, new Lookup(itemsByName, new PropertyDictionary<ProjectPropertyInstance>()), 0);
BackEnd\TaskExecutionHost_Tests.cs (1)
1286_bucket = new ItemBucket(Array.Empty<string>(), new Dictionary<string, string>(), new Lookup(itemsByName, new PropertyDictionary<ProjectPropertyInstance>()), 0);
53 references to ItemBucket
Microsoft.Build (47)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (12)
81internal static List<ItemBucket> PrepareBatchingBuckets( 101internal static List<ItemBucket> PrepareBatchingBuckets( 130List<ItemBucket> buckets = null; 176buckets = new List<ItemBucket>(1); 177var bucket = new ItemBucket(null, null, lookup, buckets.Count); 300private static List<ItemBucket> BucketConsumedItems( 310var buckets = new List<ItemBucket>(); 328ItemBucket dummyBucket = ItemBucket.GetDummyBucketForComparisons(itemMetadataValues); 334ItemBucket matchingBucket = (matchingBucketIndex >= 0) 365var orderedBuckets = new List<ItemBucket>(buckets.Count); 371foreach (ItemBucket bucket in buckets)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (6)
56List<ItemBucket> buckets = null; 65foreach (ItemBucket bucket in buckets) 137foreach (ItemBucket bucket in buckets) 154private void ExecuteAdd(ProjectItemGroupTaskItemInstance child, ItemBucket bucket, ISet<string> keepMetadata, ISet<string> removeMetadata, LoggingContext loggingContext = null) 250private void ExecuteRemove(ProjectItemGroupTaskItemInstance child, ItemBucket bucket, HashSet<string> matchOnMetadata, MatchOnMetadataOptions matchingOptions) 297private void ExecuteModify(ProjectItemGroupTaskItemInstance child, ItemBucket bucket, ISet<string> keepMetadata, ISet<string> removeMetadata, LoggingContext loggingContext = null)
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (3)
49List<ItemBucket> buckets = null; 59foreach (ItemBucket bucket in buckets) 103foreach (ItemBucket bucket in buckets)
BackEnd\Components\RequestBuilder\ItemBucket.cs (3)
131return HashTableUtility.Compare(_metadata, ((ItemBucket)obj)._metadata); 144internal static ItemBucket GetDummyBucketForComparisons(Dictionary<string, string> metadata) 146ItemBucket bucket = new ItemBucket(metadata);
BackEnd\Components\RequestBuilder\TargetEntry.cs (6)
431List<ItemBucket> buckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location, null); 447ItemBucket bucket = buckets[i]; 587foreach (ItemBucket bucket in buckets) 628List<ItemBucket> batchingBuckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location, targetLoggingContext); 633foreach (ItemBucket bucket in batchingBuckets) 658foreach (ItemBucket bucket in batchingBuckets)
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
132ItemBucket bucket, 402ItemBucket bucket, 795ItemBucket bucket,
BackEnd\Components\RequestBuilder\TaskBuilder.cs (12)
301List<ItemBucket> buckets = null; 332taskResult = await ExecuteBucket(taskHost, (ItemBucket)buckets[i], mode, lookupHash); 355foreach (ItemBucket bucket in buckets) 369private async Task<WorkUnitResult> ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary<string, string> lookupHash) 554private WorkUnitResult ExecuteTaskInSTAThread(ItemBucket bucket, TaskLoggingContext taskLoggingContext, IDictionary<string, string> taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask) 605private void LogSkippedTask(ItemBucket bucket, TaskExecutionMode howToExecuteTask) 634private void ExecuteIntrinsicTask(ItemBucket bucket) 648private async Task<WorkUnitResult> InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary<string, string> taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask) 685private void UpdateContinueOnError(ItemBucket bucket, TaskHost taskHost) 737private async Task<WorkUnitResult> ExecuteInstantiatedTask(TaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) 1067private bool GatherTaskOutputs(TaskExecutionHost taskExecutionHost, TaskExecutionMode howToExecuteTask, ItemBucket bucket) 1179ItemBucket bucket)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
125private ItemBucket _batchBucket; 300public bool InitializeForBatch(TaskLoggingContext loggingContext, ItemBucket batchBucket, IDictionary<string, string> taskIdentityParameters)
Microsoft.Build.Engine.UnitTests (6)
BackEnd\BatchingEngine_Tests.cs (4)
56List<ItemBucket> buckets = BatchingEngine.PrepareBatchingBuckets( 64foreach (ItemBucket bucket in buckets) 145List<ItemBucket> buckets = BatchingEngine.PrepareBatchingBuckets( 238List<ItemBucket> buckets = BatchingEngine.PrepareBatchingBuckets(
BackEnd\TargetUpToDateChecker_Tests.cs (1)
612ItemBucket itemBucket = new ItemBucket(null, null, new Lookup(itemsByName, new PropertyDictionary<ProjectPropertyInstance>()), 0);
BackEnd\TaskExecutionHost_Tests.cs (1)
74private ItemBucket _bucket;