Skip to content
Docs Try Aspire

ContainerImagePushOptionsCallbackAnnotation Constructors

Class Constructors 2 members
Represents an annotation that configures container image push options via a callback function.
Constructor(Action<ContainerImagePushOptionsCallbackContext>) Section titled Constructor(Action<ContainerImagePushOptionsCallbackContext>)
Initializes a new instance of the ContainerImagePushOptionsCallbackAnnotation class.
public sealed class ContainerImagePushOptionsCallbackAnnotation
{
public ContainerImagePushOptionsCallbackAnnotation(
Action<ContainerImagePushOptionsCallbackContext> callback)
{
// ...
}
}
callback Action<ContainerImagePushOptionsCallbackContext> The synchronous callback to configure push options.
ArgumentNullException Thrown when callback is null.
Constructor(Func<ContainerImagePushOptionsCallbackContext, Task>) Section titled Constructor(Func<ContainerImagePushOptionsCallbackContext, Task>)
Initializes a new instance of the ContainerImagePushOptionsCallbackAnnotation class.
public sealed class ContainerImagePushOptionsCallbackAnnotation
{
public ContainerImagePushOptionsCallbackAnnotation(
Func<ContainerImagePushOptionsCallbackContext, Task> callback)
{
// ...
}
}
callback Func<ContainerImagePushOptionsCallbackContext, Task> The asynchronous callback to configure push options.
ArgumentNullException Thrown when callback is null.