DockerfileBuildAnnotation.MaterializeDockerfileAsync Method

Definition

Materializes the Dockerfile from the factory if it hasn't been materialized yet. This method is thread-safe and ensures the Dockerfile is only written once.

public System.Threading.Tasks.Task MaterializeDockerfileAsync(Aspire.Hosting.ApplicationModel.DockerfileFactoryContext context, System.Threading.CancellationToken cancellationToken);
member this.MaterializeDockerfileAsync : Aspire.Hosting.ApplicationModel.DockerfileFactoryContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function MaterializeDockerfileAsync (context As DockerfileFactoryContext, cancellationToken As CancellationToken) As Task

Parameters

context
DockerfileFactoryContext

The context containing services and resource information.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task representing the asynchronous operation.

Applies to