DockerfileBuilderCallbackAnnotation Class

Definition

Represents an annotation for providing callbacks to programmatically modify Dockerfile builds.

public class DockerfileBuilderCallbackAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation
type DockerfileBuilderCallbackAnnotation = class
    interface IResourceAnnotation
Public Class DockerfileBuilderCallbackAnnotation
Implements IResourceAnnotation
Inheritance
DockerfileBuilderCallbackAnnotation
Implements

Constructors

Name Description
DockerfileBuilderCallbackAnnotation()

Initializes a new instance of the DockerfileBuilderCallbackAnnotation class.

DockerfileBuilderCallbackAnnotation(Func<DockerfileBuilderCallbackContext,Task>)

Initializes a new instance of the DockerfileBuilderCallbackAnnotation class with an initial callback.

Properties

Name Description
Callbacks

Gets the list of callback functions that will be invoked during the Dockerfile build process.

Methods

Name Description
AddCallback(Func<DockerfileBuilderCallbackContext,Task>)

Adds a callback function to be invoked during the Dockerfile build process.

Applies to