Skip to content
DocsTry Aspire
DocsTry

IResourceWithArgs

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

Methods

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