47 references to ToLookup
Aspire.Dashboard (16)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (1)
544var scopeAttributes = reader.Read<CachedScopeAttributeRecord>().ToLookup(record => record.ScopeId);
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (1)
692var logAttributes = attributeRecords.ToLookup(record => record.OwnerId);
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (5)
226var points = pointRecords.ToLookup(record => record.DimensionId); 288.ToLookup(record => record.OwnerId); 305.ToLookup(record => record.OwnerId); 451: Array.Empty<OwnedAttributeRecord>().ToLookup(record => record.OwnerId); 482return attributes.ToLookup(record => record.OwnerId);
Otlp\Storage\SqliteTelemetryRepository.Traces.Reads.cs (6)
733""", new { TraceIds = traceIds }, transaction).ToLookup(record => (record.TraceId, record.OwnerId)); 750var eventAttributes = eventAttributeRecords.ToLookup(record => record.OwnerId); 751var events = eventRecords.ToLookup(record => (record.TraceId, record.SpanId)); 774var linkAttributes = linkAttributeRecords.ToLookup(record => record.OwnerId); 775var outgoingLinks = linkRecords.ToLookup(record => (record.SourceTraceId, record.SourceSpanId)); 776var incomingLinks = linkRecords.ToLookup(record => (record.TraceId, record.SpanId));
ServiceClient\SqliteResourceRepository.Storage.cs (3)
434var inputs = reader.Read<InputRecord>().ToLookup(record => (record.ResourceName, record.CommandOrdinal)); 435var options = reader.Read<OptionRecord>().ToLookup(record => (record.ResourceName, record.CommandOrdinal, record.InputOrdinal)); 436var validationErrors = reader.Read<ValidationErrorRecord>().ToLookup(record => (record.ResourceName, record.CommandOrdinal, record.InputOrdinal));
Aspire.Hosting.Azure (8)
AzureProvisioningController.cs (7)
1039var parentChildLookup = model.Resources.OfType<IResourceWithParent>().ToLookup(r => r.Parent); 1151var parentChildLookup = model.Resources.OfType<IResourceWithParent>().ToLookup(r => r.Parent); 1903var parentChildLookup = model.Resources.OfType<IResourceWithParent>().ToLookup(r => r.Parent); 2026var parentChildLookup = model.Resources.OfType<IResourceWithParent>().ToLookup(r => r.Parent); 2092var parentChildLookup = model.Resources.OfType<IResourceWithParent>().ToLookup(r => r.Parent); 2177var parentChildLookup = model.Resources.OfType<IResourceWithParent>().ToLookup(r => r.Parent); 3773var parentChildLookup = model.Resources.OfType<IResourceWithParent>().ToLookup(r => r.Parent);
AzureResourcePreparer.cs (1)
231.ToLookup(a => a.Target);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityMapAbstractDomain.cs (1)
87.ToLookup(entity => entity.EqualsIgnoringInstanceLocationId);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
100var locationsByDocument = locationsInSource.ToLookup(
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
483var documentLookup = referenceLocations.ToLookup(refLoc => refLoc.Document);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
483var documentLookup = referenceLocations.ToLookup(refLoc => refLoc.Document);
Microsoft.CodeAnalysis.Features (7)
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (3)
122var projectToLocations = memberReferenceLocations.ToLookup(loc => loc.location.Document.Project.Id); 205var projectToLocations = memberReferenceLocations.ToLookup(loc => loc.location.Document.Project.Id); 250var documentToLocations = referencesForProject.ToLookup(reference => reference.location.Document.Id);
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
173var getReferencesByDocument = getMethodReferences.SelectMany(r => r.Locations).ToLookup(loc => loc.Document); 174var setReferencesByDocument = setMethodReferences.SelectMany(r => r.Locations).ToLookup(loc => loc.Document);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
96var referencesByDocument = q.ToLookup(t => t.location.Document);
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
100var locationsByDocument = locationsInSource.ToLookup(
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\9382845807600969\AnalysisEntityMapAbstractDomain.cs (1)
86.ToLookup(entity => entity.EqualsIgnoringInstanceLocationId);
Microsoft.CodeAnalysis.Workspaces (2)
Editing\SymbolEditor.cs (1)
458var declsByDocId = this.GetDeclarations(currentSymbol).ToLookup(d => ChangedSolution.GetDocument(d.SyntaxTree).Id);
Workspace\Solution\SolutionCompilationState.cs (1)
1811var documentIdsByProjectId = documentIds.ToLookup(id => id.ProjectId);
Microsoft.DotNet.SharedFramework.Sdk (1)
src\GeneratePlatformManifestEntriesFromTemplate.cs (1)
35var files = Files.ToLookup(file => Path.GetFileName(file.ItemSpec)).ToDictionary(l => l.Key, l=> l.First());
Microsoft.Gen.ContextualOptions (2)
ContextReceiver.cs (1)
46.ToLookup(declaration => declaration.SyntaxTree)
ContextualOptionsGenerator.cs (1)
38.ToLookup(declaration => declaration.SyntaxTree)
NuGet.Build.Tasks.Pack (1)
PackTaskLogic.cs (1)
949.ToLookup(library => new PackageIdentity(library.Name, library.Version));
NuGet.Frameworks (1)
CompatibilityListProvider.cs (1)
43var lookup = frameworks.ToLookup(f => f.IsPCL);
NuGet.PackageManagement (3)
Resolution\PrunePackageTree.cs (1)
69var packagesDict = packages.ToLookup(p => p.Id).ToDictionary(p => p.Key, p => p.ToArray());
Utility\FileSystemUtility.cs (1)
273var directoryLookup = filesToDelete.ToLookup(p => Path.GetDirectoryName(p));
Utility\MSBuildNuGetProjectSystemUtility.cs (1)
224var directoryLookup = frameworkSpecificGroup.Items.ToLookup(
System.Linq.Queryable (1)
System\Linq\EnumerableRewriter.cs (1)
220s_seqMethods ??= GetEnumerableStaticMethods(typeof(Enumerable)).ToLookup(m => m.Name);