Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WaitForCompletion

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithWaitSupport) WaitForCompletion(
dependency Resource,
options ...*WaitForCompletionOptions,
) ResourceWithWaitSupport

Signature

methodWaitForCompletionbuilder
Waits for the dependency resource to enter the Exited or Finished state before starting the resource.
WaitForCompletion(
dependency Resource,
options ...*WaitForCompletionOptions,
) ResourceWithWaitSupport
dependencyResourceThe resource builder for the dependency resource.
options...*WaitForCompletionOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WaitForCompletionOptions argument.

ExitCode*float64The exit code which is interpreted as successful.
ResourceWithWaitSupport

The resource builder.

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

Applies to

This method applies to the following types: