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