ContainerImagePushOptionsCallbackAnnotation Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| 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. |
ContainerImagePushOptionsCallbackAnnotation(Action<ContainerImagePushOptionsCallbackContext>)
Initializes a new instance of the ContainerImagePushOptionsCallbackAnnotation class.
public ContainerImagePushOptionsCallbackAnnotation(Action<Aspire.Hosting.ApplicationModel.ContainerImagePushOptionsCallbackContext> callback);
new Aspire.Hosting.ApplicationModel.ContainerImagePushOptionsCallbackAnnotation : Action<Aspire.Hosting.ApplicationModel.ContainerImagePushOptionsCallbackContext> -> Aspire.Hosting.ApplicationModel.ContainerImagePushOptionsCallbackAnnotation
Public Sub New (callback As Action(Of ContainerImagePushOptionsCallbackContext))
Parameters
The synchronous callback to configure push options.
Exceptions
Thrown when callback is null.
Applies to
ContainerImagePushOptionsCallbackAnnotation(Func<ContainerImagePushOptionsCallbackContext,Task>)
Initializes a new instance of the ContainerImagePushOptionsCallbackAnnotation class.
public ContainerImagePushOptionsCallbackAnnotation(Func<Aspire.Hosting.ApplicationModel.ContainerImagePushOptionsCallbackContext,System.Threading.Tasks.Task> callback);
new Aspire.Hosting.ApplicationModel.ContainerImagePushOptionsCallbackAnnotation : Func<Aspire.Hosting.ApplicationModel.ContainerImagePushOptionsCallbackContext, System.Threading.Tasks.Task> -> Aspire.Hosting.ApplicationModel.ContainerImagePushOptionsCallbackAnnotation
Public Sub New (callback As Func(Of ContainerImagePushOptionsCallbackContext, Task))
Parameters
- callback
- Func<ContainerImagePushOptionsCallbackContext,Task>
The asynchronous callback to configure push options.
Exceptions
Thrown when callback is null.