Share via


FileBufferingWriteStream.DrainBufferAsync Method

Definition

Overloads

DrainBufferAsync(PipeWriter, CancellationToken)

Drains buffered content to destination.

DrainBufferAsync(Stream, CancellationToken)

Drains buffered content to destination.

DrainBufferAsync(PipeWriter, CancellationToken)

Source:
FileBufferingWriteStream.cs

Drains buffered content to destination.

public System.Threading.Tasks.Task DrainBufferAsync (System.IO.Pipelines.PipeWriter destination, System.Threading.CancellationToken cancellationToken = default);
member this.DrainBufferAsync : System.IO.Pipelines.PipeWriter * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DrainBufferAsync (destination As PipeWriter, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

destination
PipeWriter

The PipeWriter to drain buffered contents to.

cancellationToken
CancellationToken

The CancellationToken.

Returns

A Task that represents the asynchronous drain operation.

Applies to

DrainBufferAsync(Stream, CancellationToken)

Source:
FileBufferingWriteStream.cs

Drains buffered content to destination.

public System.Threading.Tasks.Task DrainBufferAsync (System.IO.Stream destination, System.Threading.CancellationToken cancellationToken = default);
member this.DrainBufferAsync : System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DrainBufferAsync (destination As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

destination
Stream

The Stream to drain buffered contents to.

cancellationToken
CancellationToken

The CancellationToken.

Returns

A Task that represents the asynchronous drain operation.

Applies to