Skip to content
Docs Try Aspire
Docs Try

IResourceWithArgs

Interface
📦 Aspire.Hosting v13.4.0
interface IResourceWithArgs {
withArgs(args: string[]): IResourceWithArgs;
withArgsCallback(callback: (obj: CommandLineArgsCallbackContext) => Promise<void>): IResourceWithArgs;
}

Methods

method withArgs builder
Adds arguments to be passed to a resource that supports arguments when it is launched.
withArgs(args: string[]): IResourceWithArgs
args string[]
IResourceWithArgs
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