2 implementations of ReadStreamAsync
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Host\PersistentStorage\AbstractPersistentStorage.cs (1)
47public abstract Task<Stream?> ReadStreamAsync(string name, Checksum? checksum, CancellationToken cancellationToken);
Workspace\Host\PersistentStorage\NoOpPersistentStorage.cs (1)
47public Task<Stream?> ReadStreamAsync(string name, Checksum? checksum, CancellationToken cancellationToken)
15 references to ReadStreamAsync
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
97using var stream = await storage.ReadStreamAsync(key, checksumMustMatch ? checksum : null, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (14)
PersistentStorage\AbstractPersistentStorageTests.cs (13)
147Assert.Equal(GetData1(size), ReadStringToEnd(await storage.ReadStreamAsync(streamName1, GetChecksum1(withChecksum)))); 148Assert.Equal(GetData2(size), ReadStringToEnd(await storage.ReadStreamAsync(streamName2, GetChecksum2(withChecksum)))); 168Assert.Equal(GetData1(size), ReadStringToEnd(await storage.ReadStreamAsync(streamName1, GetChecksum1(withChecksum)))); 169Assert.Equal(GetData2(size), ReadStringToEnd(await storage.ReadStreamAsync(streamName2, GetChecksum2(withChecksum)))); 191Assert.Equal(GetData1(size), ReadStringToEnd(await storage.ReadStreamAsync(streamName1, GetChecksum1(withChecksum)))); 192Assert.Equal(GetData2(size), ReadStringToEnd(await storage.ReadStreamAsync(streamName2, GetChecksum2(withChecksum)))); 208Assert.Equal(GetData1(size), ReadStringToEnd(await storage.ReadStreamAsync(streamName1, GetChecksum1(withChecksum)))); 209Assert.Equal(GetData2(size), ReadStringToEnd(await storage.ReadStreamAsync(streamName2, GetChecksum2(withChecksum)))); 258var value = int.Parse(ReadStringToEnd(await storage.ReadStreamAsync(streamName1))); 302DoSimultaneousReads(async () => ReadStringToEnd(await storage.ReadStreamAsync(streamName1, GetChecksum1(withChecksum))), GetData1(size)); 354Assert.Equal(GetData1(size), ReadStringToEnd(await storage.ReadStreamAsync(streamName1, checksum: null))); 373Assert.Null(await storage.ReadStreamAsync(streamName1, s_checksum2)); 860using var stream = await storage.ReadStreamAsync(streamName1, GetChecksum1(withChecksum));
PersistentStorage\SQLiteV2PersistentStorageTests.cs (1)
45var readStream = await storage.ReadStreamAsync("temp");