IResourceWithArgs
Interface
interface IResourceWithArgs { withArgs(args: string[]): IResourceWithArgs; withArgsCallback(callback: (obj: CommandLineArgsCallbackContext) => Promise<void>): IResourceWithArgs; withArgsReplace(args: string[]): IResourceWithArgs; withCertificateTrustEnvironment( certificateBundleEnvironmentVariable: string, certificateDirectoriesEnvironmentVariable?: string): IResourceWithArgs;}Methods
Adds arguments to be passed to a resource that supports arguments when it is launched.
withArgs(args: string[]): IResourceWithArgsParameters
argsstring[]The arguments to be passed to the resource when it is started.Returns
IResourceWithArgs Adds a callback to be executed with a list of command-line arguments when a resource is started.
withArgsCallback(callback: (obj: CommandLineArgsCallbackContext) => Promise<void>): IResourceWithArgsParameters
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.Returns
IResourceWithArgs Replaces the arguments to be passed to a resource that supports arguments when it is launched.
withArgsReplace(args: string[]): IResourceWithArgsParameters
argsstring[]The arguments to be passed to the resource when it is started.Returns
IResourceWithArgs Configures environment variables that point to Aspire-managed certificate trust paths.
withCertificateTrustEnvironment( certificateBundleEnvironmentVariable: string, certificateDirectoriesEnvironmentVariable?: string): IResourceWithArgsParameters
certificateBundleEnvironmentVariable stringThe environment variable that receives the certificate bundle path.certificateDirectoriesEnvironmentVariable stringoptionalThe optional environment variable that receives the certificate directories path.Returns
IResourceWithArgs