Skip to content
Docs Try Aspire
Docs Try

withArgsCallback

Method
📦 Aspire.Hosting v13.2.0
interface ContainerResource {
// ... omitted for brevity
withArgsCallback(callback: callback): IResourceWithArgs;
}

Signature

method withArgsCallback builder
Sets command-line arguments via callback
withArgsCallback(callback: (obj: CommandLineArgsCallbackContext) => Promise<void>): IResourceWithArgs
callback (obj: CommandLineArgsCallbackContext) => Promise<void>
IResourceWithArgs

Applies to

This method applies to the following types: