Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

IComputeResource.WithImagePushOptions

Method
📦 Aspire.Hosting v17.0.0
type IComputeResource interface {
// ... omitted for brevity
WithImagePushOptions(callback func(arg ContainerImagePushOptionsCallbackContext)) IComputeResource
}

Signature

methodWithImagePushOptionsbuilder
Adds an asynchronous callback to configure container image push options for the resource.
WithImagePushOptions(callback func(arg ContainerImagePushOptionsCallbackContext)) IComputeResource
callbackfunc(arg ContainerImagePushOptionsCallbackContext)callbackThe asynchronous callback to configure push options.
IComputeResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: