58 references to ReadAsStreamAsync
dotnet-openapi (1)
HttpClientWrapper.cs (1)
51public Task<Stream> Stream => _response.Content.ReadAsStreamAsync();
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
296contentStream = await content.ReadAsStreamAsync();
InMemory.FunctionalTests (2)
KestrelMetricsTests.cs (2)
576responseStream = await responseMessage.Content.ReadAsStreamAsync(); 819var stream = await responseMessage.Content.ReadAsStreamAsync().DefaultTimeout();
Interop.FunctionalTests (13)
Http2\Http2RequestTests.cs (1)
301var responseStream = await responseMessage.Content.ReadAsStreamAsync();
Http3\Http3RequestTests.cs (5)
261var responseStream = await response.Content.ReadAsStreamAsync().DefaultTimeout(); 1031var responseStream = await response.Content.ReadAsStreamAsync().DefaultTimeout(); 1125var responseStream = await response.Content.ReadAsStreamAsync().DefaultTimeout(); 1323var responseStream = await response.Content.ReadAsStreamAsync().DefaultTimeout(); 1377var responseStream = await response.Content.ReadAsStreamAsync();
HttpClientHttp2InteropTests.cs (7)
95await BulkContent.VerifyContent(await response.Content.ReadAsStreamAsync().DefaultTimeout()); 140await BulkContent.VerifyContent(await response.Content.ReadAsStreamAsync()).DefaultTimeout(); 189await BulkContent.VerifyContent(await response.Content.ReadAsStreamAsync().DefaultTimeout()); 305var stream = await response.Content.ReadAsStreamAsync().DefaultTimeout(); 382var stream = await response.Content.ReadAsStreamAsync(); 973var responseStream = await response.Content.ReadAsStreamAsync().DefaultTimeout(); 1014var responseStream = await response.Content.ReadAsStreamAsync().DefaultTimeout();
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\ServerSentEventsTransport.cs (1)
134using (var stream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false))
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
ContentNegotiationTest.cs (1)
515var bodyStream = await response.Content.ReadAsStreamAsync();
XmlDataContractSerializerInputFormatterTest.cs (2)
67var responseStream = await response.Content.ReadAsStreamAsync(); 98var responseStream = await response.Content.ReadAsStreamAsync();
Microsoft.AspNetCore.Mvc.Testing (1)
Handlers\RedirectHandler.cs (1)
113var originalBody = await request.Content!.ReadAsStreamAsync();
Microsoft.AspNetCore.ResponseCompression.Tests (6)
ResponseCompressionMiddlewareTest.cs (6)
758var body = await response.Content.ReadAsStreamAsync(); 811var body = await response.Content.ReadAsStreamAsync(); 880var body = await response.Content.ReadAsStreamAsync(); 944var body = await response.Content.ReadAsStreamAsync(); 1009var body = await response.Content.ReadAsStreamAsync(); 1220var body = await response.Content.ReadAsStreamAsync();
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
LoggingHandler.cs (1)
38var readAsStreamAsync = await response.Content.ReadAsStreamAsync();
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
447var gzipContent = await response.Content.ReadAsStreamAsync();
Microsoft.AspNetCore.TestHost (1)
ClientHandler.cs (1)
92var body = await requestContent.ReadAsStreamAsync();
Microsoft.AspNetCore.TestHost.Tests (10)
ClientHandlerTests.cs (3)
225var responseBody = await response.Content.ReadAsStreamAsync(); 454Stream responseStream = await response.Content.ReadAsStreamAsync(); 476Stream responseStream = await response.Content.ReadAsStreamAsync();
ResponseBodyTests.cs (1)
138var stream = await response.Content.ReadAsStreamAsync();
TestClientTests.cs (6)
210var responseContent = await response.Content.ReadAsStreamAsync().DefaultTimeout(); 318var responseContent = await response.Content.ReadAsStreamAsync().DefaultTimeout(); 372var responseContent = await response.Content.ReadAsStreamAsync().DefaultTimeout(); 434var responseContent = await response.Content.ReadAsStreamAsync().DefaultTimeout(); 481var responseContent = await response.Content.ReadAsStreamAsync().DefaultTimeout(); 532var responseContent = await response.Content.ReadAsStreamAsync().DefaultTimeout();
Microsoft.Build.Tasks.Core (1)
DownloadFile.cs (1)
205using (Stream responseStream = await response.Content.ReadAsStreamAsync(
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\AzureStorageUtils.cs (1)
285var remoteStream = await response.Content.ReadAsStreamAsync();
Microsoft.DotNet.VersionTools (1)
BuildInfo.cs (1)
59using (var reader = new StreamReader(await response.Content.ReadAsStreamAsync()))
Microsoft.Extensions.Http.Diagnostics.Tests (4)
Logging\AcceptanceTests.cs (4)
201var responseStream = await content.Content.ReadAsStreamAsync(); 253var responseStream = await content.Content.ReadAsStreamAsync(); 275responseStream = await content.Content.ReadAsStreamAsync(); 689var responseStream = await content.Content.ReadAsStreamAsync();
Microsoft.Extensions.ML (1)
ModelLoaders\UriModelLoader.cs (1)
144using (var stream = await resp.Content.ReadAsStreamAsync())
Microsoft.ML.AutoML.Tests (1)
DatasetUtil.cs (1)
211var stream = await response.EnsureSuccessStatusCode().Content.ReadAsStreamAsync().ConfigureAwait(false);
Microsoft.ML.Core (1)
Utilities\ResourceManagerUtils.cs (1)
280var stream = await response.EnsureSuccessStatusCode().Content.ReadAsStreamAsync().ConfigureAwait(false);
Microsoft.ML.PerformanceTests (2)
ImageClassificationBench.cs (2)
173using Stream contentStream = response.Content.ReadAsStreamAsync().Result; 182using Stream contentStream = response.Content.ReadAsStreamAsync().Result;
Microsoft.ML.Tokenizers (1)
Utils\Helpers.netstandard.cs (1)
27return await response.Content.ReadAsStreamAsync().ConfigureAwait(false);
Microsoft.ML.Tokenizers.Data.Tests (1)
test\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
24var stream = await response.Content.ReadAsStreamAsync();
Microsoft.ML.Tokenizers.Tests (1)
Utils.cs (1)
24var stream = await response.Content.ReadAsStreamAsync();
ServerComparison.FunctionalTests (1)
ResponseCompressionTests.cs (1)
226using (var stream = await content.ReadAsStreamAsync())
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
80var responseBody = await response.Content.ReadAsStreamAsync();