Skip to content
Docs Try Aspire
Docs Try

withArgsCallback

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
withArgsCallback(callback: callback): 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

Applies to

This method applies to the following types: