withArgsCallback
Method
interface ContainerResource { // ... omitted for brevity withArgsCallback(callback: callback): IResourceWithArgs;}Signature
method
withArgsCallback builderAdds 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 Applies to
This method applies to the following types: