Share via


DockerfileBuilder.WriteAsync(StreamWriter, CancellationToken) Method

Definition

Writes the Dockerfile content to the specified StreamWriter.

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

Parameters

writer
StreamWriter

The StreamWriter to write to.

cancellationToken
CancellationToken

A cancellation token.

Returns

A task representing the asynchronous write operation.

Applies to