Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Resource.WithContainerBuildOptions

Method
📦 Aspire.Hosting v17.0.0
func (Resource) WithContainerBuildOptions(callback func(arg ContainerBuildOptionsCallbackContext)) Resource

Signature

methodWithContainerBuildOptionsbuilder
Configures container build options for a compute resource using an async callback.
WithContainerBuildOptions(callback func(arg ContainerBuildOptionsCallbackContext)) Resource
callbackfunc(arg ContainerBuildOptionsCallbackContext)callbackAn async callback to configure container build options.
Resource

A reference to the IResourceBuilder.

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

Defined on

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

Applies to

This function applies to the following types: