Skip to content
Docs Try Aspire
Docs Try

IResourceWithArgs.withArgsCallback

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

Signature

method withArgsCallback builder
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: