DockerfileBuildAnnotation.MaterializeDockerfileAsync 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.
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.