40 references to ToSolutionKey
AnalyzerRunner (1)
IncrementalAnalyzerRunner.cs (1)
46
var persistentStorage = await persistentStorageService.GetStorageAsync(SolutionKey.
ToSolutionKey
(_workspace.CurrentSolution), cancellationToken).ConfigureAwait(false);
IdeBenchmarks (1)
SQLitePersistentStorageBenchmark.cs (1)
68
_storage = _storageService.GetStorageAsync(SolutionKey.
ToSolutionKey
(solution), CancellationToken.None).AsTask().GetAwaiter().GetResult();
IdeCoreBenchmarks (2)
FindReferencesBenchmarks.cs (1)
87
var storage = await storageService.GetStorageAsync(SolutionKey.
ToSolutionKey
(_workspace.CurrentSolution), CancellationToken.None);
NavigateToBenchmarks.cs (1)
184
var storage = await storageService.GetStorageAsync(SolutionKey.
ToSolutionKey
(_workspace.CurrentSolution), CancellationToken.None);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Preview\PreviewWorkspaceTests.cs (1)
119
var storage = await persistentService.GetStorageAsync(SolutionKey.
ToSolutionKey
(previewWorkspace.CurrentSolution), CancellationToken.None);
Microsoft.CodeAnalysis.Features (1)
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
65
var solutionKey = SolutionKey.
ToSolutionKey
(project.Solution);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (1)
129
var storage = await persistenceService.GetStorageAsync(SolutionKey.
ToSolutionKey
(solution), cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (14)
Classification\SemanticClassificationCacheUtilities.cs (1)
23
var projectKey = new ProjectKey(SolutionKey.
ToSolutionKey
(project.Solution), project.Id, project.FilePath, project.Name, Checksum.Null);
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (1)
77
var solutionKey = SolutionKey.
ToSolutionKey
(project.Solution);
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (1)
147
SolutionKey.
ToSolutionKey
(document.Project.Solution),
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (2)
110
SolutionKey.
ToSolutionKey
(solution),
243
SolutionKey.
ToSolutionKey
(solution),
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (2)
41
SolutionKey.
ToSolutionKey
(solution),
58
SolutionKey.
ToSolutionKey
(project.Solution),
FindSymbols\SyntaxTree\SyntaxTreeIndex.cs (3)
39
=> GetRequiredIndexAsync(SolutionKey.
ToSolutionKey
(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
45
=> GetIndexAsync(SolutionKey.
ToSolutionKey
(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
51
=> GetIndexAsync(SolutionKey.
ToSolutionKey
(document.Project.Solution), document.Project.State, (DocumentState)document.State, loadOnly, cancellationToken);
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.cs (3)
47
=> GetRequiredIndexAsync(SolutionKey.
ToSolutionKey
(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
53
=> GetIndexAsync(SolutionKey.
ToSolutionKey
(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken);
59
=> GetIndexAsync(SolutionKey.
ToSolutionKey
(document.Project.Solution), document.Project.State, (DocumentState)document.State, loadOnly, cancellationToken);
Storage\LegacyPersistentStorageService.cs (1)
37
=> NoOpPersistentStorage.GetOrThrow(SolutionKey.
ToSolutionKey
(solution), throwOnFailure: false);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (19)
PersistentStorage\AbstractPersistentStorageTests.cs (19)
490
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
511
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
622
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
646
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
665
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
670
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
686
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
691
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
707
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
728
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
749
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
773
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
797
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
802
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
821
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
826
var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.
ToSolutionKey
(solution));
842
var location = configuration.TryGetStorageLocation(SolutionKey.
ToSolutionKey
(workspace.CurrentSolution));
1013
SolutionKey.
ToSolutionKey
(solution), configuration, faultInjector, CancellationToken.None);
1018
Assert.NotEqual(NoOpPersistentStorage.TestAccessor.GetStorageInstance(SolutionKey.
ToSolutionKey
(solution)), storage);