Skip to content
DocsTry Aspire
DocsTry

ContainerImagePushOptionsCallbackAnnotation Constructors

ClassConstructors2 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)
{
// ...
}
}
callbackAction<ContainerImagePushOptionsCallbackContext>The synchronous callback to configure push options.
ArgumentNullExceptionThrown 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)
{
// ...
}
}
callbackFunc<ContainerImagePushOptionsCallbackContext, Task>The asynchronous callback to configure push options.
ArgumentNullExceptionThrown when callback is null.