2 instantiations of SolutionStateChecksums
Microsoft.CodeAnalysis.Workspaces (2)
Serialization\SerializerService_ChecksumWithChildren.cs (1)
87.Add(WellKnownSynchronizationKind.SolutionState, children => new SolutionStateChecksums(children))
Workspace\Solution\SolutionState_Checksum.cs (1)
161return new SolutionStateChecksums(
67 references to SolutionStateChecksums
Microsoft.CodeAnalysis.Remote.ServiceHub (12)
Host\ChecksumSynchronizer.cs (2)
39var solutionChecksumObject = await _assetProvider.GetAssetAsync<SolutionStateChecksums>(solutionChecksum, cancellationToken).ConfigureAwait(false);
Host\RemoteWorkspace.SolutionCreator.cs (5)
46var newSolutionChecksums = await _assetProvider.GetAssetAsync<SolutionStateChecksums>(newSolutionChecksum, cancellationToken).ConfigureAwait(false); 63var oldSolutionChecksums = await solution.State.GetStateChecksumsAsync(cancellationToken).ConfigureAwait(false); 64var newSolutionChecksums = await _assetProvider.GetAssetAsync<SolutionStateChecksums>(newSolutionChecksum, cancellationToken).ConfigureAwait(false);
Host\SolutionAssetCache.cs (1)
220var checksums = await _remoteWorkspace.CurrentSolution.State.GetStateChecksumsAsync(cancellationToken).ConfigureAwait(false);
Host\TestUtils.cs (4)
117var solutionChecksums = await assetService.GetAssetAsync<SolutionStateChecksums>(solutionChecksum, CancellationToken.None).ConfigureAwait(false); 172var solutionChecksums = await solution.State.GetStateChecksumsAsync(cancellationToken).ConfigureAwait(false); 180var solutionChecksums = await solution.State.GetStateChecksumsAsync(projectId, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.Workspaces (4)
AbstractAssetProvider.cs (2)
29var solutionChecksums = await GetAssetAsync<SolutionStateChecksums>(solutionChecksum, cancellationToken).ConfigureAwait(false);
SolutionAssetStorage.Scope.cs (2)
130if (solutionState.TryGetStateChecksums(out var stateChecksums)) 138if (solutionState.TryGetStateChecksums(projectId, out var checksums))
Microsoft.CodeAnalysis.Workspaces (16)
Serialization\SerializationExtensions.cs (1)
19SolutionStateChecksums _ => WellKnownSynchronizationKind.SolutionState,
Workspace\Solution\SolutionState.cs (3)
55private readonly ValueSource<SolutionStateChecksums> _lazyChecksums; 61private readonly Dictionary<ProjectId, ValueSource<SolutionStateChecksums>> _lazyProjectChecksums = new(); 108_lazyChecksums = new AsyncLazy<SolutionStateChecksums>(
Workspace\Solution\SolutionState_Checksum.cs (12)
23public bool TryGetStateChecksums([NotNullWhen(true)] out SolutionStateChecksums? stateChecksums) 26public bool TryGetStateChecksums(ProjectId projectId, [NotNullWhen(true)] out SolutionStateChecksums? stateChecksums) 28ValueSource<SolutionStateChecksums>? checksums; 42public Task<SolutionStateChecksums> GetStateChecksumsAsync(CancellationToken cancellationToken) 47var collection = await GetStateChecksumsAsync(cancellationToken).ConfigureAwait(false); 52public async Task<SolutionStateChecksums> GetStateChecksumsAsync( 58ValueSource<SolutionStateChecksums>? checksums; 68var collection = await checksums.GetValueAsync(cancellationToken).ConfigureAwait(false); 72ValueSource<SolutionStateChecksums> Compute(ProjectId projectId) 77return new AsyncLazy<SolutionStateChecksums>( 107var checksums = await GetStateChecksumsAsync(projectId, cancellationToken).ConfigureAwait(false); 113private async Task<SolutionStateChecksums> ComputeChecksumsAsync(
Roslyn.VisualStudio.Next.UnitTests (35)
Remote\SerializationValidator.cs (6)
115internal async Task VerifyAssetAsync(SolutionStateChecksums solutionObject) 212var solutionObjectFromSyncObject = await GetValueAsync<SolutionStateChecksums>(solutionChecksum); 213Contract.ThrowIfFalse(solution.State.TryGetStateChecksums(out var solutionObjectFromSolution)); 218internal void SolutionStateEqual(SolutionStateChecksums solutionObject1, SolutionStateChecksums solutionObject2)
Remote\SnapshotSerializationTests.cs (28)
95var solutionObject = await validator.GetValueAsync<SolutionStateChecksums>(checksum).ConfigureAwait(false); 130var solutionObject = await validator.GetValueAsync<SolutionStateChecksums>(checksum).ConfigureAwait(false); 165var solutionObject = await validator.GetValueAsync<SolutionStateChecksums>(syncObject.Checksum).ConfigureAwait(false); 203var solutionObject = await validator.GetValueAsync<SolutionStateChecksums>(syncObject.Checksum).ConfigureAwait(false); 237var solutionObject = await validator.GetValueAsync<SolutionStateChecksums>(scope.SolutionChecksum); 250var solutionObject = await validator.GetValueAsync<SolutionStateChecksums>(scope.SolutionChecksum); 262SolutionStateChecksums solutionId1; 263SolutionStateChecksums solutionId2; 269solutionId1 = await validator.GetValueAsync<SolutionStateChecksums>(scope1.SolutionChecksum).ConfigureAwait(false); 274solutionId2 = await validator.GetValueAsync<SolutionStateChecksums>(scope2.SolutionChecksum).ConfigureAwait(false); 308var solutionObject1 = await validator.GetValueAsync<SolutionStateChecksums>(scope1.SolutionChecksum).ConfigureAwait(false); 314var solutionObject2 = await validator.GetValueAsync<SolutionStateChecksums>(scope2.SolutionChecksum).ConfigureAwait(false); 326var solutionObject3 = await validator.GetValueAsync<SolutionStateChecksums>(scope3.SolutionChecksum).ConfigureAwait(false); 345var solutionObject1 = await validator.GetValueAsync<SolutionStateChecksums>(scope1.SolutionChecksum).ConfigureAwait(false); 351var solutionObject2 = await validator.GetValueAsync<SolutionStateChecksums>(scope2.SolutionChecksum).ConfigureAwait(false); 364var solutionObject3 = await validator.GetValueAsync<SolutionStateChecksums>(scope3.SolutionChecksum).ConfigureAwait(false);
Services\SolutionAssetCacheTests.cs (1)
71var checksums = await solution.State.GetStateChecksumsAsync(CancellationToken.None);