20 instantiations of SolutionAsset
Microsoft.CodeAnalysis.Remote.Workspaces (3)
SolutionAsset.cs (1)
15
public static readonly SolutionAsset Null =
new
(value: null, Checksum.Null, WellKnownSynchronizationKind.Null);
SolutionAssetStorage.Scope.cs (2)
107
return new
SolutionAsset
(checksum, value);
123
result[checksum] = new
SolutionAsset
(checksum, value);
Roslyn.VisualStudio.Next.UnitTests (17)
Remote\SerializationValidator.cs (9)
119
(v, k, s) => new
SolutionAsset
(s.CreateChecksum(v, CancellationToken.None), v)).ConfigureAwait(false);
132
(v, k, s) => new
SolutionAsset
(s.CreateChecksum(v, CancellationToken.None), v)).ConfigureAwait(false);
136
(v, k, s) => new
SolutionAsset
(s.CreateChecksum(v, CancellationToken.None), v));
140
(v, k, s) => new
SolutionAsset
(s.CreateChecksum(v, CancellationToken.None), v));
152
(v, k, s) => new
SolutionAsset
(s.CreateChecksum(v, CancellationToken.None), v));
159
(v, k, s) => new
SolutionAsset
(s.CreateChecksum(v, CancellationToken.None), v));
166
(v, k, s) => new
SolutionAsset
(s.CreateChecksum(v, CancellationToken.None), v));
186
(v, k, s) => new
SolutionAsset
(s.CreateChecksum(v, CancellationToken.None), v)).ConfigureAwait(false);
190
(v, k, s) => new
SolutionAsset
(s.CreateChecksum(v, CancellationToken.None), v));
Remote\SnapshotSerializationTests.cs (8)
290
var assetFromFile = new
SolutionAsset
(serializer.CreateChecksum(reference, CancellationToken.None), reference);
380
var assetFromFile = new
SolutionAsset
(serializer.CreateChecksum(reference, CancellationToken.None), reference);
394
var assetFromFile = new
SolutionAsset
(serializer.CreateChecksum(reference, CancellationToken.None), reference);
408
var assetFromFile = new
SolutionAsset
(serializer.CreateChecksum(reference, CancellationToken.None), reference);
429
var assetFromFile = new
SolutionAsset
(serializer.CreateChecksum(reference, CancellationToken.None), reference);
450
var assetFromFile = new
SolutionAsset
(serializer.CreateChecksum(reference, CancellationToken.None), reference);
465
var assetFromFile = new
SolutionAsset
(serializer.CreateChecksum(reference, CancellationToken.None), reference);
689
var assetFromStorage = new
SolutionAsset
(serializer.CreateChecksum(recovered, CancellationToken.None), recovered);
46 references to SolutionAsset
Microsoft.CodeAnalysis.Remote.Workspaces (15)
RemoteHostAssetSerialization.cs (3)
24
SolutionAsset
? singleAsset,
25
IReadOnlyDictionary<Checksum,
SolutionAsset
>? assetMap,
69
static void WriteAsset(ObjectWriter writer, ISerializerService serializer, SolutionReplicationContext context, Checksum checksum,
SolutionAsset
asset, CancellationToken cancellationToken)
SolutionAsset.cs (1)
15
public static readonly
SolutionAsset
Null = new(value: null, Checksum.Null, WellKnownSynchronizationKind.Null);
SolutionAssetProvider.cs (2)
62
SolutionAsset
? singleAsset = null;
63
IReadOnlyDictionary<Checksum,
SolutionAsset
>? assetMap = null;
SolutionAssetStorage.cs (2)
116
public async ValueTask<
SolutionAsset
?> GetAssetAsync(Checksum checksum, CancellationToken cancellationToken)
120
var
data = await scope.GetAssetAsync(checksum, cancellationToken).ConfigureAwait(false);
SolutionAssetStorage.Scope.cs (7)
53
public async ValueTask<
SolutionAsset
> GetAssetAsync(Checksum checksum, CancellationToken cancellationToken)
58
return
SolutionAsset
.Null;
68
public async ValueTask<IReadOnlyDictionary<Checksum,
SolutionAsset
>> GetAssetsAsync(
76
var result = new Dictionary<Checksum,
SolutionAsset
>(numberOfChecksumsToSearch);
80
result[Checksum.Null] =
SolutionAsset
.Null;
94
private async ValueTask<
SolutionAsset
> FindAssetAsync(Checksum checksum, CancellationToken cancellationToken)
115
private async Task FindAssetsAsync(HashSet<Checksum> remainingChecksumsToFind, Dictionary<Checksum,
SolutionAsset
> result, CancellationToken cancellationToken)
Roslyn.VisualStudio.Next.UnitTests (31)
Remote\SerializationValidator.cs (9)
82
var
data = (await AssetStorage.GetTestAccessor().GetAssetAsync(checksum, CancellationToken.None).ConfigureAwait(false))!;
196
Func<T, WellKnownSynchronizationKind, ISerializerService,
SolutionAsset
> assetGetter)
199
var
syncObject = (await AssetStorage.GetTestAccessor().GetAssetAsync(checksum, CancellationToken.None).ConfigureAwait(false))!;
202
var
recreatedSyncObject = assetGetter(recoveredValue, kind, Serializer);
331
internal async Task VerifySynchronizationObjectInServiceAsync(
SolutionAsset
syncObject)
340
var
otherObject = (await AssetStorage.GetTestAccessor().GetAssetAsync(checksum, CancellationToken.None).ConfigureAwait(false))!;
348
internal static void SynchronizationObjectEqual<T>(ChecksumObjectCollection<T> checksumObject1,
SolutionAsset
checksumObject2) where T : ChecksumWithChildren
351
internal static void SynchronizationObjectEqual(
SolutionAsset
checksumObject1,
SolutionAsset
checksumObject2)
Remote\SnapshotSerializationTests.cs (22)
91
var
solutionSyncObject = await scope.GetAssetAsync(checksum, CancellationToken.None).ConfigureAwait(false);
98
var
projectsSyncObject = await scope.GetAssetAsync(solutionObject.Projects.Checksum, CancellationToken.None).ConfigureAwait(false);
126
var
solutionSyncObject = await scope.GetAssetAsync(checksum, CancellationToken.None).ConfigureAwait(false);
134
var
projectSyncObject = await scope.GetAssetAsync(solutionObject.Projects.Checksum, CancellationToken.None).ConfigureAwait(false);
164
var
syncObject = await scope.GetAssetAsync(scope.SolutionChecksum, CancellationToken.None).ConfigureAwait(false);
202
var
syncObject = await scope.GetAssetAsync(scope.SolutionChecksum, CancellationToken.None).ConfigureAwait(false);
290
var
assetFromFile = new SolutionAsset(serializer.CreateChecksum(reference, CancellationToken.None), reference);
292
var
assetFromStorage = CloneAsset(serializer, assetFromFile);
380
var
assetFromFile = new SolutionAsset(serializer.CreateChecksum(reference, CancellationToken.None), reference);
381
var
assetFromStorage = CloneAsset(serializer, assetFromFile);
394
var
assetFromFile = new SolutionAsset(serializer.CreateChecksum(reference, CancellationToken.None), reference);
395
var
assetFromStorage = CloneAsset(serializer, assetFromFile);
408
var
assetFromFile = new SolutionAsset(serializer.CreateChecksum(reference, CancellationToken.None), reference);
409
var
assetFromStorage = CloneAsset(serializer, assetFromFile);
429
var
assetFromFile = new SolutionAsset(serializer.CreateChecksum(reference, CancellationToken.None), reference);
430
var
assetFromStorage = CloneAsset(serializer, assetFromFile);
450
var
assetFromFile = new SolutionAsset(serializer.CreateChecksum(reference, CancellationToken.None), reference);
451
var
assetFromStorage = CloneAsset(serializer, assetFromFile);
465
var
assetFromFile = new SolutionAsset(serializer.CreateChecksum(reference, CancellationToken.None), reference);
676
private static
SolutionAsset
CloneAsset(ISerializerService serializer,
SolutionAsset
asset)
689
var
assetFromStorage = new SolutionAsset(serializer.CreateChecksum(recovered, CancellationToken.None), recovered);