Skip to content
Docs Try Aspire
Docs Try

withArgsCallbackAsync

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

Signature

method withArgsCallbackAsync builder
Sets command-line arguments via async callback
withArgsCallbackAsync(callback: (arg: CommandLineArgsCallbackContext) => Promise<void>): IResourceWithArgs
callback (arg: CommandLineArgsCallbackContext) => Promise<void>
IResourceWithArgs

Applies to

This method applies to the following types: