43 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)
117await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = "1234" }).CopyToAsync(memory); 150await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret, }).CopyToAsync(memory); 187await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret, }).CopyToAsync(memory); 225await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret }).CopyToAsync(memory);
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
3612await response.Content.CopyToAsync(_stream);
Microsoft.AspNetCore.Http.Extensions.Tests (29)
RequestDelegateGenerator\RequestDelegateCreationTests.Filters.cs (1)
230await form.CopyToAsync(stream);
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (21)
30await form.CopyToAsync(stream); 65await form.CopyToAsync(stream); 100await form.CopyToAsync(stream); 138await form.CopyToAsync(stream); 176await form.CopyToAsync(stream); 217await form.CopyToAsync(stream); 254await form.CopyToAsync(stream); 290await form.CopyToAsync(stream); 363await form.CopyToAsync(stream); 397await form.CopyToAsync(stream); 446await form.CopyToAsync(stream); 486await form.CopyToAsync(stream); 545await content.CopyToAsync(stream); 592await content.CopyToAsync(stream); 639await content.CopyToAsync(stream); 668await content.CopyToAsync(stream); 701await content.CopyToAsync(stream); 731await content.CopyToAsync(stream); 761await content.CopyToAsync(stream); 824await form.CopyToAsync(stream); 867await content.CopyToAsync(stream);
RequestDelegateGenerator\RuntimeCreationTests.ComplexFormBinding.cs (7)
26await content.CopyToAsync(stream); 62await content.CopyToAsync(stream); 94await content.CopyToAsync(stream); 131await content.CopyToAsync(stream); 168await content.CopyToAsync(stream); 203await content.CopyToAsync(stream); 240await 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)
170await 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)
486/// 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. 501/// 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.