22 references to ReadAsStreamAsync
aspire (2)
Commands\TelemetryLogsCommand.cs (1)
205
using var stream = await response.Content.
ReadAsStreamAsync
(cancellationToken);
Commands\TelemetrySpansCommand.cs (1)
206
using var stream = await response.Content.
ReadAsStreamAsync
(cancellationToken);
Aspire.Hosting (3)
Dcp\DcpKubernetesClient.cs (3)
82
Body = await httpResponse.Content.
ReadAsStreamAsync
(cancellationToken).ConfigureAwait(false)
104
var content = await httpResponse.Content.
ReadAsStreamAsync
(cancellationToken).ConfigureAwait(false);
146
var responseContent = await httpResponse.Content.
ReadAsStreamAsync
(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.OpenAI (1)
OpenAIHealthCheck.cs (1)
90
using var stream = await resp.Content.
ReadAsStreamAsync
(cts.Token).ConfigureAwait(false);
Microsoft.Build.Tasks.Core (1)
DownloadFile.cs (1)
210
using (Stream responseStream = await response.Content.
ReadAsStreamAsync
(
Microsoft.Extensions.Http.Diagnostics (2)
Logging\Internal\HttpRequestBodyReader.cs (1)
80
var streamToReadFrom = await request.Content!.
ReadAsStreamAsync
(cancellationToken).ConfigureAwait(false);
Logging\Internal\HttpResponseBodyReader.cs (1)
94
Stream streamToReadFrom = await response.Content.
ReadAsStreamAsync
(cancellationToken).ConfigureAwait(false);
Microsoft.NET.Build.Containers (1)
Registry\DefaultBlobOperations.cs (1)
59
return await response.Content.
ReadAsStreamAsync
(cancellationToken).ConfigureAwait(false);
NuGet.Protocol (4)
HttpSource\HttpCacheUtility.cs (1)
76
using (var networkStream = await response.Content.
ReadAsStreamAsync
(cancellationToken))
HttpSource\HttpRetryHandler.cs (1)
169
var networkStream = await response.Content.
ReadAsStreamAsync
(cancellationToken);
HttpSource\HttpSource.cs (1)
184
using (var stream = await throttledResponse.Response.Content.
ReadAsStreamAsync
(lockedToken))
Resources\PackageSearchResourceV3.cs (1)
262
using (var stream = await httpInitialResponse.Content.
ReadAsStreamAsync
(token))
System.Net.Http (7)
System\Net\Http\HttpClient.cs (3)
207
using Stream responseStream = c.TryReadAsStream() ?? await c.
ReadAsStreamAsync
(cts.Token).ConfigureAwait(false);
283
using Stream responseStream = c.TryReadAsStream() ?? await c.
ReadAsStreamAsync
(cts.Token).ConfigureAwait(false);
339
return c.TryReadAsStream() ?? await c.
ReadAsStreamAsync
(cancellationToken).ConfigureAwait(false);
System\Net\Http\HttpContent.cs (1)
240
ReadAsStreamAsync
(CancellationToken.None);
System\Net\Http\HttpProtocolException.cs (1)
16
/// <see cref="HttpContent.
ReadAsStreamAsync
(Threading.CancellationToken)"/>, <see cref="HttpProtocolException"/> can be thrown directly.
System\Net\Http\MultipartContent.cs (1)
272
readStream = nestedContent.TryReadAsStream() ?? await nestedContent.
ReadAsStreamAsync
(cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (1)
203
originalStream = _originalContent.TryReadAsStream() ?? await _originalContent.
ReadAsStreamAsync
(cancellationToken).ConfigureAwait(false);
System.Net.Http.Json (1)
System\Net\Http\Json\HttpContentJsonExtensions.netcoreapp.cs (1)
15
return content.
ReadAsStreamAsync
(cancellationToken);