Skip to content
Docs Try Aspire

withArgsCallbackAsync

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

Signature

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

Applies to

This function is an extension method on the following types: