Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​IO.​Pipelines.​StreamPipeExtensions

Assembly: System.IO.Pipelines

Inheritance: object → StreamPipeExtensions

Provides extension methods for <see cref="T:System.IO.Stream" /> that support read and write operations directly into pipes.

Methods

CopyToAsync​(Stream source, PipeWriter destination, Threading.​CancellationToken cancellationToken = null)
Asynchronously reads the bytes from the <see cref="T:System.IO.Stream" /> and writes them to the specified <see cref="T:System.IO.Pipelines.PipeWriter" /> , using a cancellation token.
Returns A task that represents the asynchronous copy operation.
source The stream from which the contents of the current stream will be copied.
destination The writer to which the contents of the source stream will be copied.
cancellationToken The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" /> .
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object