DockerfileBuilder.WriteAsync(StreamWriter, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.