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