Skip to content
DocsTry Aspire
DocsTry

IResourceWithArgs.withArgsCallback

Method
📦 Aspire.Hosting v13.4.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>
IResourceWithArgs

Defined on

This method is defined on the following type: