14 references to CopyToAsync
InMemory.FunctionalTests (1)
TestTransport\InMemoryHttpClientSlim.cs (1)
85await content.CopyToAsync(stream).ConfigureAwait(false);
Interop.FunctionalTests (1)
HttpClientHttp2InteropTests.cs (1)
120await content.CopyToAsync(context.Response.Body).DefaultTimeout();
Microsoft.AspNetCore.Components.Server.Tests (4)
CircuitDisconnectMiddlewareTest.cs (4)
123await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = "1234" }).CopyToAsync(memory); 157await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret, }).CopyToAsync(memory); 195await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret, }).CopyToAsync(memory); 234await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret }).CopyToAsync(memory);
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
3616await response.Content.CopyToAsync(_stream);
Microsoft.AspNetCore.InternalTesting (1)
HttpClientSlim.cs (1)
87await content.CopyToAsync(stream).ConfigureAwait(false);
Microsoft.AspNetCore.TestHost (1)
ClientHandler.cs (1)
103await requestContent.CopyToAsync(writer.AsStream());
Microsoft.DotNet.Arcade.Sdk (1)
src\DownloadFile.cs (1)
200await httpResponse.Content.CopyToAsync(outStream).ConfigureAwait(false);
Microsoft.DotNet.Helix.Sdk (1)
ProvisioningProfileProvider.cs (1)
218await response.Content.CopyToAsync(fileStream);
Microsoft.ML.PerformanceTests (1)
ImageClassificationBench.cs (1)
239await content.CopyToAsync(fileStream);
System.Net.Http (2)
System\Net\Http\HttpContent.cs (2)
448/// After content is serialized to a memory buffer, calls to one of the <see cref="CopyToAsync(Stream)"/> methods will copy the content of the memory buffer to the target stream. 463/// After content is serialized to a memory buffer, calls to one of the <see cref="CopyToAsync(Stream)"/> methods will copy the content of the memory buffer to the target stream.