1 instantiation of SolutionKey
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Host\PersistentStorage\SolutionKey.cs (1)
35=> new(solutionState.Id, solutionState.FilePath);
67 references to SolutionKey
AnalyzerRunner (2)
IncrementalAnalyzerRunner.cs (1)
58await using var persistentStorage = await persistentStorageService.GetStorageAsync(SolutionKey.ToSolutionKey(_workspace.CurrentSolution), cancellationToken).ConfigureAwait(false);
PersistentStorageConfiguration.cs (1)
27public string? TryGetStorageLocation(SolutionKey _)
IdeBenchmarks (2)
SQLitePersistentStorageBenchmark.cs (2)
70_storage = _storageService.GetStorageWorkerAsync(SolutionKey.ToSolutionKey(solution), CancellationToken.None).AsTask().GetAwaiter().GetResult(); 133public string TryGetStorageLocation(SolutionKey _)
IdeCoreBenchmarks (4)
AbstractCloudCachePersistentStorageService.cs (1)
42SolutionKey solutionKey, string workingFolderPath, string databaseFilePath, CancellationToken cancellationToken)
CloudCachePersistentStorage.cs (1)
49SolutionKey solutionKey,
FindReferencesBenchmarks.cs (1)
98using (var storage = await storageService.GetStorageAsync(SolutionKey.ToSolutionKey(_workspace.CurrentSolution), CancellationToken.None))
NavigateToBenchmarks.cs (1)
197using (var storage = await storageService.GetStorageAsync(SolutionKey.ToSolutionKey(_workspace.CurrentSolution), CancellationToken.None))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Preview\PreviewWorkspaceTests.cs (1)
133await using var storage = await persistentService.GetStorageAsync(SolutionKey.ToSolutionKey(previewWorkspace.CurrentSolution), CancellationToken.None);
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
AbstractCloudCachePersistentStorageService.cs (1)
42SolutionKey solutionKey, string workingFolderPath, string databaseFilePath, CancellationToken cancellationToken)
CloudCachePersistentStorage.cs (1)
49SolutionKey solutionKey,
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (1)
115var storage = await persistenceService.GetStorageAsync(SolutionKey.ToSolutionKey(solution), cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (31)
Classification\SemanticClassificationCacheUtilities.cs (1)
23var projectKey = new ProjectKey(SolutionKey.ToSolutionKey(project.Solution), project.Id, project.FilePath, project.Name, Checksum.Null);
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (1)
140var storage = await persistentStorageService.GetStorageAsync(SolutionKey.ToSolutionKey(solution), cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (4)
118solution.Services, SolutionKey.ToSolutionKey(solution), reference, checksum, cancellationToken).ConfigureAwait(false); 122SolutionKey solutionKey, 147SolutionKey solutionKey, 231SolutionKey.ToSolutionKey(solution),
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (2)
30SolutionKey solutionKey, 84SolutionKey solutionKey,
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (2)
42SolutionKey.ToSolutionKey(solution), 59SolutionKey.ToSolutionKey(project.Solution),
Storage\AbstractPersistentStorageService.cs (5)
41protected abstract ValueTask<IChecksummedPersistentStorage?> TryOpenDatabaseAsync(SolutionKey solutionKey, string workingFolderPath, string databaseFilePath, CancellationToken cancellationToken); 44public ValueTask<IChecksummedPersistentStorage> GetStorageAsync(SolutionKey solutionKey, CancellationToken cancellationToken) 51internal async ValueTask<IChecksummedPersistentStorage> GetStorageWorkerAsync(SolutionKey solutionKey, CancellationToken cancellationToken) 99SolutionKey solutionKey, string workingFolderPath, CancellationToken cancellationToken) 115SolutionKey solutionKey,
Storage\SQLite\v2\SQLitePersistentStorage.cs (3)
28private readonly SolutionKey _solutionKey; 52SolutionKey solutionKey, 87SolutionKey solutionKey,
Storage\SQLite\v2\SQLitePersistentStorage_SolutionSerialization.cs (2)
34private sealed class SolutionAccessor : Accessor<SolutionKey, SolutionPrimaryKey> 43protected override SolutionPrimaryKey? TryGetDatabaseKey(SqlConnection connection, SolutionKey key, bool allowWrite)
Storage\SQLite\v2\SQLitePersistentStorageService.cs (1)
99SolutionKey solutionKey, string workingFolderPath, string databaseFilePath, CancellationToken cancellationToken)
Workspace\Host\PersistentStorage\IChecksummedPersistentStorageService.cs (1)
13ValueTask<IChecksummedPersistentStorage> GetStorageAsync(SolutionKey solutionKey, CancellationToken cancellationToken);
Workspace\Host\PersistentStorage\IPersistentStorageConfiguration.cs (2)
29string? TryGetStorageLocation(SolutionKey solutionKey); 66public string? TryGetStorageLocation(SolutionKey solutionKey)
Workspace\Host\PersistentStorage\NoOpPersistentStorageService.cs (1)
25public ValueTask<IChecksummedPersistentStorage> GetStorageAsync(SolutionKey solutionKey, CancellationToken cancellationToken)
Workspace\Host\PersistentStorage\ProjectKey.cs (4)
20public readonly SolutionKey Solution; 34public ProjectKey(SolutionKey solution, ProjectId id, string? filePath, string name, Checksum parseOptionsChecksum) 47=> ToProjectKey(SolutionKey.ToSolutionKey(solutionState), projectState); 49public static ProjectKey ToProjectKey(SolutionKey solutionKey, ProjectState projectState)
Workspace\Host\PersistentStorage\SolutionKey.cs (2)
31public static SolutionKey ToSolutionKey(Solution solution) 34public static SolutionKey ToSolutionKey(SolutionState solutionState)
Microsoft.VisualStudio.LanguageServices (2)
Storage\AbstractCloudCachePersistentStorageService.cs (1)
42SolutionKey solutionKey, string workingFolderPath, string databaseFilePath, CancellationToken cancellationToken)
Storage\CloudCachePersistentStorage.cs (1)
49SolutionKey solutionKey,
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (20)
PersistentStorage\AbstractPersistentStorageTests.cs (20)
498await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 519await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 630await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 654await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 673await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 678await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 694await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 699await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 715await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 736await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 757await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 781await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 805await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 810await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 829await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 834await using (var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution))) 851var location = configuration.TryGetStorageLocation(SolutionKey.ToSolutionKey(workspace.CurrentSolution)); 1019var storage = await _storageService.GetStorageAsync(SolutionKey.ToSolutionKey(solution), CancellationToken.None); 1031HostWorkspaceServices services, SolutionKey solutionKey, IPersistentStorageFaultInjector? faultInjector = null) 1064public string? TryGetStorageLocation(SolutionKey solutionKey)
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (2)
CSharp\CSharpFindReferences.cs (2)
162Assert.NotNull(persistentStorageConfiguration.TryGetStorageLocation(SolutionKey.ToSolutionKey(visualStudioWorkspace.CurrentSolution))); 168Assert.Null(persistentStorageConfiguration.TryGetStorageLocation(SolutionKey.ToSolutionKey(visualStudioWorkspace.CurrentSolution)));