IResourceWithArgs.withArgsCallback

Method
📦 Aspire.Hosting v17.0.0
interface IResourceWithArgs {
// ... omitted for brevity
withArgsCallback(callback: (obj: CommandLineArgsCallbackContext) => Promise<void>): IResourceWithArgs;
}

Signature

methodwithArgsCallbackbuilder
Adds a callback to be executed with a list of command-line arguments when a resource is started.
withArgsCallback(callback: (obj: CommandLineArgsCallbackContext) => Promise<void>): IResourceWithArgs
callback(obj: CommandLineArgsCallbackContext) => Promise<void>A callback that allows for deferred execution for computing arguments. This runs after resources have been allocated by the orchestrator and allows access to other resources to resolve computed data, e.g. connection strings, ports.
IResourceWithArgs

Defined on

This method is defined on the following type: