42 instantiations of ConcurrentBag
AnalyzerRunner (1)
aspire (1)
Aspire.Hosting (1)
Aspire.Hosting.Integration.Analyzers (1)
Aspire.TestUtilities (1)
InMemory.FunctionalTests (1)
Microsoft.AspNetCore.Analyzers.Test (6)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.Build (5)
Microsoft.Build.Engine.UnitTests (1)
Microsoft.Build.TaskAuthoring.Analyzer (6)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.DotNet.Baselines.Tasks (1)
Microsoft.DotNet.Deployment.Tasks.Links (2)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.Core (1)
Microsoft.ML.Data (1)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.Transforms (1)
Microsoft.ML.Vision (1)
System.Reflection.MetadataLoadContext (1)
136 references to ConcurrentBag
AnalyzerRunner (1)
aspire (2)
Aspire.Hosting (1)
Aspire.Hosting.Integration.Analyzers (4)
AspireExportAnalyzer.cs (4)
75var exportsByKey = new ConcurrentDictionary<(string ExportId, string TargetType), ConcurrentBag<(IMethodSymbol Method, Location Location)>>();
123ConcurrentDictionary<(string ExportId, string TargetType), ConcurrentBag<(IMethodSymbol Method, Location Location)>> exportsByKey)
217var bag = exportsByKey.GetOrAdd(key, _ => new ConcurrentBag<(IMethodSymbol, Location)>());
762ConcurrentDictionary<(string ExportId, string TargetType), ConcurrentBag<(IMethodSymbol Method, Location Location)>> exportsByKey)
Aspire.Hosting.Tests (8)
Aspire.TestUtilities (1)
InMemory.FunctionalTests (1)
Microsoft.AspNetCore.Analyzers.Test (6)
Microsoft.AspNetCore.Components.Endpoints (11)
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Binding\FormDataMapperTests.cs (3)
785var expected = new ConcurrentBag<int>(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
786CanDeserialize_Collection<ConcurrentBag<int>, ConcurrentBag<int>, int>(expected);
Microsoft.AspNetCore.Http.Extensions (11)
Microsoft.Build (5)
Microsoft.Build.Engine.UnitTests (1)
Microsoft.Build.TaskAuthoring.Analyzer (9)
TransitiveCallChainAnalyzer.cs (9)
69var callGraph = new ConcurrentDictionary<ISymbol, ConcurrentBag<ISymbol>>(SymbolEqualityComparer.Default);
70var directViolations = new ConcurrentDictionary<ISymbol, ConcurrentBag<ViolationInfo>>(SymbolEqualityComparer.Default);
97ConcurrentDictionary<ISymbol, ConcurrentBag<ISymbol>> callGraph,
98ConcurrentDictionary<ISymbol, ConcurrentBag<ViolationInfo>> directViolations,
223ConcurrentDictionary<ISymbol, ConcurrentBag<ISymbol>> callGraph,
224ConcurrentDictionary<ISymbol, ConcurrentBag<ViolationInfo>> directViolations,
279if (callGraph.TryGetValue(methodKey, out var directCallees))
301if (directViolations.TryGetValue(current, out var violations))
315bool hasSourceEdges = callGraph.TryGetValue(current, out var callees);
Microsoft.CodeAnalysis.Analyzers (11)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (10)
250var idToAnalyzerMap = new ConcurrentDictionary<string, ConcurrentDictionary<string, ConcurrentBag<Location>>>();
476var locations = analyzerToDescriptorLocationsMap[analyzerName];
1196ConcurrentDictionary<string, ConcurrentDictionary<string, ConcurrentBag<Location>>> idToAnalyzerMap)
1217ConcurrentBag<Location> AddLocationFactory(string analyzerName)
1220ConcurrentBag<Location> UpdateLocationsFactory(string analyzerName, ConcurrentBag<Location> bag)
1226ConcurrentDictionary<string, ConcurrentBag<Location>> AddNamedTypeFactory(string r)
1228var dict = new ConcurrentDictionary<string, ConcurrentBag<Location>>();
1236ConcurrentDictionary<string, ConcurrentBag<Location>> UpdateNamedTypeFactory(string r, ConcurrentDictionary<string, ConcurrentBag<Location>> existingValue)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.Features (8)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (7)
146var bag = new ConcurrentBag<(Diagnostic diagnostic, CodeAction action)>();
201ConcurrentBag<(Diagnostic diagnostic, CodeAction action)> fixes,
248private static async Task<IReadOnlyDictionary<DocumentId, ConcurrentBag<(CodeAction, Document)>>> GetDocumentIdToChangedDocumentsAsync(
254var documentIdToChangedDocuments = new ConcurrentDictionary<DocumentId, ConcurrentBag<(CodeAction, Document)>>();
272IReadOnlyDictionary<DocumentId, ConcurrentBag<(CodeAction, Document)>> documentIdToChangedDocuments,
340private static readonly Func<DocumentId, ConcurrentBag<(CodeAction, Document)>> s_getValue =
345ConcurrentDictionary<DocumentId, ConcurrentBag<(CodeAction, Document)>> documentIdToChangedDocuments,
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.DotNet.Baselines.Tasks (2)
Microsoft.DotNet.Deployment.Tasks.Links (2)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.Maui.Resizetizer (4)
Microsoft.ML.Core (1)
Microsoft.ML.Data (1)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.Transforms (1)
Microsoft.ML.Vision (1)
netstandard (1)
System (1)
System.Collections.Concurrent (31)
System.Reflection.MetadataLoadContext (2)