50 overrides of CopyToAsync
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DelegatingStream.cs (1)
125public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.AspNetCore.Components.Server (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
138public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.AspNetCore.Http.Connections (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
138public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\NonDisposableStream.cs (1)
139public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.AspNetCore.OpenApi (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
138public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\OpaqueStream.cs (1)
108public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.AspNetCore.Server.IIS (4)
Core\DuplexStream.cs (1)
73public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Core\HttpRequestStream.cs (1)
71public override async Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Core\HttpUpgradeStream.cs (1)
148public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Core\WrappingStream.cs (1)
87public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpRequestStream.cs (1)
156public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Internal\Http\HttpUpgradeStream.cs (1)
148public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Internal\Infrastructure\WrappingStream.cs (1)
86public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.AspNetCore.SignalR.Common (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
138public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
138public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
138public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
138public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
138public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.AspNetCore.WebUtilities (2)
FileBufferingReadStream.cs (1)
427public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
MultipartReaderStream.cs (1)
374public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Microsoft.Extensions.AI.OpenAI (1)
OpenAIFileDownloadStream.cs (1)
99public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) =>
NuGet.Packaging (1)
Signing\Archive\ReadOnlyBufferedStream.cs (1)
124public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
ScenarioTests.Common.Tests (1)
TestMockStream.cs (1)
48public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System.IO.Compression (3)
System\IO\Compression\DeflateZLib\DeflateStream.cs (1)
899public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System\IO\Compression\GZipStream.cs (1)
261public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System\IO\Compression\ZLibStream.cs (1)
255public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System.IO.Pipelines (1)
System\IO\Pipelines\PipeReaderStream.cs (1)
151public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System.Memory (1)
System\Buffers\ReadOnlySequenceStream.cs (1)
152public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System.Net.Http (10)
src\runtime\src\libraries\Common\src\System\IO\DelegatingStream.cs (1)
130public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System\Net\Http\EmptyReadStream.cs (1)
28public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (1)
244public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\ConnectionCloseReadStream.cs (1)
90public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\ContentLengthReadStream.cs (1)
119public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (2)
308public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) 420public override async Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
1629public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\HttpContentWriteStream.cs (1)
38public sealed override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) => throw new NotSupportedException();
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (1)
93public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpResponseStream.cs (1)
92public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System.Net.WebClient (1)
src\runtime\src\libraries\Common\src\System\IO\DelegatingStream.cs (1)
130public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System.Private.CoreLib (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (1)
1274public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (1)
526public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (1)
464public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\ReadOnlyMemoryStream.cs (1)
196public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (1)
834public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\DerivedFileStreamStrategy.cs (1)
147public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (1)
1019public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\WritableMemoryStream.cs (1)
198public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System.Security.Cryptography (1)
System\Security\Cryptography\CryptoStream.cs (1)
713public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
System.ServiceModel.Primitives (1)
System\ServiceModel\Channels\DelegatingStream.cs (1)
75public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) => BaseStream.CopyToAsync(destination, bufferSize, cancellationToken);
52 references to CopyToAsync
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DelegatingStream.cs (1)
127return _stream.CopyToAsync(destination, bufferSize, cancellationToken);
Microsoft.AspNetCore.Http (1)
FormFile.cs (1)
105await readStream.CopyToAsync(target, DefaultBufferSize, cancellationToken);
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\NonDisposableStream.cs (1)
141return _innerStream.CopyToAsync(destination, bufferSize, cancellationToken);
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\OpaqueStream.cs (1)
110return _requestStream.CopyToAsync(destination, bufferSize, cancellationToken);
Microsoft.AspNetCore.Server.IIS (3)
Core\DuplexStream.cs (1)
75return _requestBody.CopyToAsync(destination, bufferSize, cancellationToken);
Core\HttpUpgradeStream.cs (1)
150return _requestStream.CopyToAsync(destination, bufferSize, cancellationToken);
Core\WrappingStream.cs (1)
88=> _inner.CopyToAsync(destination, bufferSize, cancellationToken);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\HttpUpgradeStream.cs (1)
150return _requestStream.CopyToAsync(destination, bufferSize, cancellationToken);
Internal\Infrastructure\WrappingStream.cs (1)
87=> _inner.CopyToAsync(destination, bufferSize, cancellationToken);
Microsoft.AspNetCore.SpaServices.Extensions (1)
Proxying\SpaProxy.cs (1)
188await responseStream.CopyToAsync(context.Response.Body, StreamCopyBufferSize, cancellationToken);
Microsoft.AspNetCore.WebUtilities (2)
FileBufferingReadStream.cs (1)
437return _buffer.CopyToAsync(destination, bufferSize, cancellationToken);
MultipartReaderStream.cs (1)
380return base.CopyToAsync(destination, bufferSize, cancellationToken);
Microsoft.Build.Tasks.Core (2)
DownloadFile.cs (1)
217await responseStream.CopyToAsync(target, 1024, cancellationToken).ConfigureAwait(false);
Unzip.cs (1)
280stream.CopyToAsync(destination, _DefaultCopyBufferSize, _cancellationToken.Token)
Microsoft.CodeAnalysis.Features (2)
Debugging\DebugInformationReaderProvider.cs (1)
77await _stream.CopyToAsync(stream, bufferSize: 4 * 1024, cancellationToken).ConfigureAwait(false);
Emit\CompilationOutputs.cs (1)
162await peImage.CopyToAsync(stream, bufferSize: 4 * 1024, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
142await stream.CopyToAsync(readStream, bufferSize: 81920, cancellationToken).ConfigureAwait(false);
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsIpc\ProcessEnvironment.cs (1)
38await continuation.CopyToAsync(memoryStream, CopyBufferSize, token).ConfigureAwait(false);
Microsoft.Extensions.AI.Abstractions (3)
Contents\DataContent.cs (1)
189await stream.CopyToAsync(memoryStream,
Files\HostedFileClientExtensions.cs (1)
130await downloadStream.CopyToAsync(fileStream,
Files\HostedFileDownloadStream.cs (1)
101await CopyToAsync(memoryStream,
Microsoft.Extensions.AI.Abstractions.Tests (1)
Files\HostedFileClientExtensionsTests.cs (1)
78await stream.CopyToAsync(ms, 81920, ct);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIFileDownloadStream.cs (1)
100_innerStream.CopyToAsync(destination, bufferSize, cancellationToken);
Microsoft.ML.Core (1)
Utilities\ResourceManagerUtils.cs (1)
282await stream.CopyToAsync(ws, blockSize, ct);
Microsoft.ML.TestFrameworkCommon (1)
TestDownloadUtils.cs (1)
38contentStream.CopyToAsync(fileStream, 81920, cancellationSource.Token).GetAwaiter().GetResult();
NuGet.Packaging (1)
Signing\Archive\ReadOnlyBufferedStream.cs (1)
128return base.CopyToAsync(destination, bufferSize, cancellationToken);
NuGet.Protocol (4)
HttpSource\HttpCacheUtility.cs (1)
81await networkStream.CopyToAsync(fileStream, BufferSize, cancellationToken);
Utility\GetDownloadResultUtility.cs (1)
208await packageStream.CopyToAsync(fileStream, BufferSize, token);
Utility\GlobalPackagesFolderUtility.cs (1)
124stream => packageStream.CopyToAsync(stream, BufferSize, token),
Utility\StreamExtensions.cs (1)
17await stream.CopyToAsync(destination, BufferSize, token);
ScenarioTests.Common.Tests (1)
TestMockStream.cs (1)
59return t ?? InnerStream.CopyToAsync(destination, bufferSize, cancellationToken);
System.IO.Compression (1)
System\IO\Compression\DeflateZLib\DeflateStream.cs (1)
963await _deflateStream._stream.CopyToAsync(this, _arrayPoolBuffer.Length, _cancellationToken).ConfigureAwait(false);
System.Memory.Data (1)
System\BinaryData.cs (1)
299await stream.CopyToAsync(memoryStream, bufferSize, cancellationToken).ConfigureAwait(false);
System.Net.Http (7)
src\runtime\src\libraries\Common\src\System\IO\DelegatingStream.cs (1)
132return _innerStream.CopyToAsync(destination, bufferSize, cancellationToken);
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (2)
320await _decompressionStream.CopyToAsync(destination, bufferSize, cancellationToken).ConfigureAwait(false); 431await _stream.CopyToAsync(destination, bufferSize, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (2)
1916return _stream.CopyToAsync(destination, bufferSize, cancellationToken); 1932await _stream.CopyToAsync(destination, bufferSize, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\HttpConnectionResponseContent.cs (1)
61await contentStream.CopyToAsync(stream, BufferSize, cancellationToken).ConfigureAwait(false);
System\Net\Http\StreamToStreamCopy.cs (1)
60source.CopyToAsync(destination, bufferSize, cancellationToken);
System.Net.Http.WinHttpHandler (1)
System\Net\Http\NoWriteNoSeekStreamContent.cs (1)
48Task copyTask = _content.CopyToAsync(stream, BufferSize, cancellationToken);
System.Net.WebClient (1)
src\runtime\src\libraries\Common\src\System\IO\DelegatingStream.cs (1)
132return _innerStream.CopyToAsync(destination, bufferSize, cancellationToken);
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (1)
1310await _stream.CopyToAsync(destination, bufferSize, cancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (2)
529return _strategy.CopyToAsync(destination, bufferSize, cancellationToken); 622=> base.CopyToAsync(destination, bufferSize, cancellationToken);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (1)
476return base.CopyToAsync(destination, bufferSize, cancellationToken);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (1)
868await _strategy.CopyToAsync(destination, bufferSize, cancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (3)
81public Task CopyToAsync(Stream destination, int bufferSize) => CopyToAsync(destination, bufferSize, CancellationToken.None); 83public Task CopyToAsync(Stream destination, CancellationToken cancellationToken) => CopyToAsync(destination, GetCopyBufferSize(), cancellationToken); 982/// <summary>Validates arguments provided to the <see cref="CopyTo(Stream, int)"/> or <see cref="CopyToAsync(Stream, int, CancellationToken)"/> methods.</summary>
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStreamWrapper.cs (1)
149return _unmanagedStream.CopyToAsync(destination, bufferSize, cancellationToken);
System.ServiceModel.Primitives (1)
System\ServiceModel\Channels\DelegatingStream.cs (1)
75public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) => BaseStream.CopyToAsync(destination, bufferSize, cancellationToken);