Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

InteractionInputBuilder.WithDynamicLoading

Method
📦 Aspire.Hosting v17.0.0
type InteractionInputBuilder interface {
// ... omitted for brevity
WithDynamicLoading(
callback func(arg InteractionInputLoadContext),
options ...*DynamicLoadingOptions,
) InteractionInputBuilder
}

Signature

methodWithDynamicLoading
Attaches a callback that dynamically loads or updates the input after the prompt starts.
WithDynamicLoading(
callback func(arg InteractionInputLoadContext),
options ...*DynamicLoadingOptions,
) InteractionInputBuilder
callbackfunc(arg InteractionInputLoadContext)callbackThe callback invoked to load the input. Use the supplied context to read other inputs and update this input.
options...*DynamicLoadingOptionsOptional settings, described under Options.

Optional parameters are passed as the existing *DynamicLoadingOptions struct.

InteractionInputBuilder

The same builder handle.

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

Defined on

This method is defined on the following type: