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