IResourceWithArgs

Interface
📦 Aspire.Hosting v17.0.0
interface IResourceWithArgs {
withArgs(args: string[]): IResourceWithArgs;
withArgsCallback(callback: (obj: CommandLineArgsCallbackContext) => Promise<void>): IResourceWithArgs;
withArgsReplace(args: string[]): IResourceWithArgs;
withCertificateTrustEnvironment(
certificateBundleEnvironmentVariable: string,
certificateDirectoriesEnvironmentVariable?: string): IResourceWithArgs;
}

Methods

methodwithArgsbuilder
Adds arguments to be passed to a resource that supports arguments when it is launched.
withArgs(args: string[]): IResourceWithArgs
argsstring[]The arguments to be passed to the resource when it is started.
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>A callback that allows for deferred execution for computing arguments. This runs after resources have been allocated by the orchestrator and allows access to other resources to resolve computed data, e.g. connection strings, ports.
IResourceWithArgs
methodwithArgsReplacebuilder
Replaces the arguments to be passed to a resource that supports arguments when it is launched.
withArgsReplace(args: string[]): IResourceWithArgs
argsstring[]The arguments to be passed to the resource when it is started.
IResourceWithArgs
Configures environment variables that point to Aspire-managed certificate trust paths.
withCertificateTrustEnvironment(
certificateBundleEnvironmentVariable: string,
certificateDirectoriesEnvironmentVariable?: string): IResourceWithArgs
certificateBundleEnvironmentVariablestringThe environment variable that receives the certificate bundle path.
certificateDirectoriesEnvironmentVariablestringoptionalThe optional environment variable that receives the certificate directories path.
IResourceWithArgs