ContainerImagePushOptionsCallbackAnnotation Class

Definition

Represents an annotation that configures container image push options via a callback function.

public sealed class ContainerImagePushOptionsCallbackAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation
type ContainerImagePushOptionsCallbackAnnotation = class
    interface IResourceAnnotation
Public NotInheritable Class ContainerImagePushOptionsCallbackAnnotation
Implements IResourceAnnotation
Inheritance
ContainerImagePushOptionsCallbackAnnotation
Implements

Remarks

This annotation allows resources to customize how container images are named and tagged when pushed to a registry. Multiple annotations can be added to a single resource, and all callbacks will be invoked in the order they were added. Use WithImagePushOptions<T>(IResourceBuilder<T>, Action<ContainerImagePushOptionsCallbackContext>) or WithImagePushOptions<T>(IResourceBuilder<T>, Func<ContainerImagePushOptionsCallbackContext,Task>) to add this annotation to a resource.

Constructors

Name Description
ContainerImagePushOptionsCallbackAnnotation(Action<ContainerImagePushOptionsCallbackContext>)

Initializes a new instance of the ContainerImagePushOptionsCallbackAnnotation class.

ContainerImagePushOptionsCallbackAnnotation(Func<ContainerImagePushOptionsCallbackContext,Task>)

Initializes a new instance of the ContainerImagePushOptionsCallbackAnnotation class.

Properties

Name Description
Callback

Gets the callback function that configures image push options.

Applies to