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