ContainerImagePushOptionsCallbackAnnotation
Class sealed net10.0
Represents an annotation that configures container image push options via a callback function.
namespace Aspire.Hosting.ApplicationModel;
public sealed class ContainerImagePushOptionsCallbackAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation{ // ...}Remarks
Section titled 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
ResourceBuilderExtensions.WithImagePushOptions or ResourceBuilderExtensions.WithImagePushOptions to add this annotation to a resource. Constructors2
Section titled ConstructorsContainerImagePushOptionsCallbackAnnotation(Action<ContainerImagePushOptionsCallbackContext>) Initializes a new instance of the
ContainerImagePushOptionsCallbackAnnotation class. ContainerImagePushOptionsCallbackAnnotation(Func<ContainerImagePushOptionsCallbackContext, Task>) Initializes a new instance of the
ContainerImagePushOptionsCallbackAnnotation class.