Skip to content
Docs Try Aspire
Docs Try

Aspire.Hosting

Official
📦 Aspire.Hosting v13.2.0
168 Functions
79 Types

Types

handle AfterResourcesCreatedEvent 2 members
handle BeforeResourceStartedEvent 2 members
handle BeforeStartEvent 2 members
handle CancellationToken
handle CommandLineArgsCallbackContext 7 members
type CommandOptions 7 fields
handle ConnectionStringAvailableEvent 2 members
handle ConnectionStringResource
handle ContainerRegistryResource
handle ContainerResource 18 members
type CreateBuilderOptions 8 fields
handle CSharpAppResource
handle DistributedApplication 1 members
handle DistributedApplicationEventSubscription
handle DistributedApplicationExecutionContext 6 members
handle DistributedApplicationExecutionContextOptions
handle DistributedApplicationModel 2 members
handle DistributedApplicationResourceEventSubscription
handle DotnetToolResource 6 members
handle EndpointReference 16 members
handle EndpointReferenceExpression 3 members
handle EnvironmentCallbackContext 6 members
handle ExecutableResource 4 members
handle ExecuteCommandContext 6 members
type ExecuteCommandResult 3 fields
handle ExternalServiceResource 1 members
interface IConfiguration 5 members
interface IConfigurationSection
interface IDistributedApplicationBuilder 28 members
interface IDistributedApplicationEvent
interface IDistributedApplicationEventing 1 members
interface IDistributedApplicationResourceEvent
interface IHostEnvironment 4 members
interface ILogger 5 members
interface ILoggerFactory 1 members
handle InitializeResourceEvent 5 members
interface IReportingStep 6 members
interface IReportingTask 4 members
interface IResource 24 members
interface IResourceWithArgs 3 members
interface IResourceWithConnectionString 4 members
interface IResourceWithContainerFiles 2 members
interface IResourceWithEndpoints 11 members
interface IResourceWithEnvironment 15 members
interface IResourceWithParent
interface IResourceWithWaitSupport 5 members
interface IServiceProvider 6 members
interface IUserSecretsManager 5 members
handle ParameterResource 1 members
handle PipelineConfigurationContext 7 members
handle PipelineContext 7 members
handle PipelineStep 14 members
handle PipelineStepContext 10 members
handle PipelineStepFactoryContext 4 members
handle PipelineSummary 2 members
handle ProjectResource 3 members
handle ProjectResourceOptions 6 members
handle ReferenceExpression 1 members
handle ReferenceExpressionBuilder 5 members
handle ResourceEndpointsAllocatedEvent 2 members
type ResourceEventDto 6 fields
handle ResourceLoggerService 2 members
handle ResourceNotificationService 6 members
handle ResourceReadyEvent 2 members
handle ResourceStoppedEvent 2 members
type ResourceUrlAnnotation 4 fields
handle ResourceUrlsCallbackContext 6 members
handle UpdateCommandStateContext 2 members

Functions

method addConnectionString builder
Adds a connection string resource
addConnectionString(name: string, environmentVariableName?: string): IResourceWithConnectionString
method addConnectionStringBuilder builder
Adds a connection string with a builder callback
addConnectionStringBuilder(name: string, connectionStringBuilder: (obj: ReferenceExpressionBuilder) => Promise<void>): ConnectionStringResource
method addConnectionStringExpression builder
Adds a connection string with a reference expression
addConnectionStringExpression(name: string, connectionStringExpression: ReferenceExpression): ConnectionStringResource
method addContainer builder
Adds a container resource
addContainer(name: string, image: string): ContainerResource
method addContainerRegistry builder
Adds a container registry resource
addContainerRegistry(name: string, endpoint: ParameterResource, repository?: ParameterResource): ContainerRegistryResource
method addContainerRegistryFromString builder
Adds a container registry with string endpoint
addContainerRegistryFromString(name: string, endpoint: string, repository?: string): ContainerRegistryResource
method addCSharpApp builder
Adds a C# application resource
addCSharpApp(name: string, path: string): ProjectResource
method addCSharpAppWithOptions builder
Adds a C# application resource with configuration options
addCSharpAppWithOptions(name: string, path: string, configure: (obj: ProjectResourceOptions) => Promise<void>): CSharpAppResource
method addDockerfile builder
Adds a container resource built from a Dockerfile
addDockerfile(name: string, contextPath: string, dockerfilePath?: string, stage?: string): ContainerResource
method addDotnetTool builder
Adds a .NET tool resource
addDotnetTool(name: string, packageId: string): DotnetToolResource
method addExecutable builder
Adds an executable resource
addExecutable(name: string, command: string, workingDirectory: string, args: string[]): ExecutableResource
method addExternalService builder
Adds an external service resource
addExternalService(name: string, url: string): ExternalServiceResource
method addExternalServiceParameter builder
Adds an external service with a parameter URL
addExternalServiceParameter(name: string, urlParameter: ParameterResource): ExternalServiceResource
method addExternalServiceUri builder
Adds an external service with a URI
addExternalServiceUri(name: string, uri: uri): ExternalServiceResource
method addMarkdown
Adds a Markdown-formatted value to the pipeline summary
addMarkdown(key: string, markdownString: string): void
method addParameter builder
Adds a parameter resource
addParameter(name: string, secret?: boolean): ParameterResource
method addParameterFromConfiguration builder
Adds a parameter sourced from configuration
addParameterFromConfiguration(name: string, configurationKey: string, secret?: boolean): ParameterResource
method addParameterWithValue builder
Adds a parameter with a default value
addParameterWithValue(name: string, value: string, publishValueAsDefault?: boolean, secret?: boolean): ParameterResource
method addProject builder
Adds a .NET project resource
addProject(name: string, projectPath: string, launchProfileName: string): ProjectResource
method addProjectWithOptions builder
Adds a project resource with configuration options
addProjectWithOptions(name: string, projectPath: string, configure: (obj: ProjectResourceOptions) => Promise<void>): ProjectResource
method asHttp2Service builder
Configures resource for HTTP/2
asHttp2Service(): IResourceWithEndpoints
method clearContainerFilesSources builder
Clears all container file sources
clearContainerFilesSources(): IResourceWithContainerFiles
method completeLog
Completes the log stream for a resource
completeLog(resource: IResource): void
method completeLogByName
Completes the log stream by resource name
completeLogByName(resourceName: string): void
method completeStep
Completes the reporting step with plain-text completion text
completeStep(completionText: string, completionState?: string, cancellationToken?: cancellationToken): void
method completeStepMarkdown
Completes the reporting step with Markdown-formatted completion text
completeStepMarkdown(markdownString: string, completionState?: string, cancellationToken?: cancellationToken): void
method completeTask
Completes the reporting task with plain-text completion text
completeTask(completionMessage?: string, completionState?: string, cancellationToken?: cancellationToken): void
method completeTaskMarkdown
Completes the reporting task with Markdown-formatted completion text
completeTaskMarkdown(markdownString: string, completionState?: string, cancellationToken?: cancellationToken): void
method createBuilder
Creates a new distributed application builder
createBuilder(): IDistributedApplicationBuilder
method createBuilderWithOptions
Creates builder with options
createBuilderWithOptions(): IDistributedApplicationBuilder
method createLogger
Creates a logger for a category
createLogger(categoryName: string): ILogger
method createMarkdownTask
Creates a reporting task with Markdown-formatted status text
createMarkdownTask(markdownString: string, cancellationToken?: cancellationToken): IReportingTask
method createTask
Creates a reporting task with plain-text status text
createTask(statusText: string, cancellationToken?: cancellationToken): IReportingTask
method disableForwardedHeaders builder
Disables forwarded headers for the project
disableForwardedHeaders(): ProjectResource
method excludeFromManifest builder
Excludes the resource from the deployment manifest
excludeFromManifest(): IResource
method excludeFromMcp builder
Excludes the resource from MCP server exposure
excludeFromMcp(): IResource
method exists
Checks whether a configuration section exists
exists(key: string): boolean
method findResourceByName
Finds a resource by name
findResourceByName(name: string): IResource
method getChildren
Gets child configuration sections
getChildren(): IConfigurationSection[]
method getConfiguration
Gets the application configuration
getConfiguration(): IConfiguration
method getConfigValue
Gets a configuration value by key
getConfigValue(key: string): string
method getConnectionProperty
Gets a connection property by key
getConnectionProperty(key: string): ReferenceExpression
method getConnectionString
Gets a connection string by name
getConnectionString(name: string): string
method getDistributedApplicationModel
Gets the distributed application model from the service provider
getDistributedApplicationModel(): DistributedApplicationModel
method getEndpoint
Gets an endpoint reference
getEndpoint(name: string): EndpointReference
method getEventing
Gets the distributed application eventing service from the service provider
getEventing(): IDistributedApplicationEventing
method getLoggerFactory
Gets the logger factory from the service provider
getLoggerFactory(): ILoggerFactory
method getOrSetSecret
Gets a secret value if it exists, or sets it to the provided value if it does not
getOrSetSecret(resourceBuilder: IResource, name: string, value: string): void
method getResourceLoggerService
Gets the resource logger service from the service provider
getResourceLoggerService(): ResourceLoggerService
method getResourceName
Gets the resource name
getResourceName(): string
method getResourceNotificationService
Gets the resource notification service from the service provider
getResourceNotificationService(): ResourceNotificationService
method getResources
Gets resources from the distributed application model
getResources(): IResource[]
method getSection
Gets a configuration section by key
getSection(key: string): IConfigurationSection
method getUserSecretsManager
Gets the user secrets manager from the service provider
getUserSecretsManager(): IUserSecretsManager
method isDevelopment
Checks if running in Development environment
isDevelopment(): boolean
method isEnvironment
Checks if the environment matches the specified name
isEnvironment(environmentName: string): boolean
method isProduction
Checks if running in Production environment
isProduction(): boolean
method isStaging
Checks if running in Staging environment
isStaging(): boolean
method log
Logs a message with specified level
log(level: string, message: string): void
method logDebug
Logs a debug message
logDebug(message: string): void
method logError
Logs an error message
logError(message: string): void
method logInformation
Logs an information message
logInformation(message: string): void
method logStep
Logs a plain-text message for the reporting step
logStep(level: string, message: string): void
method logStepMarkdown
Logs a Markdown-formatted message for the reporting step
logStepMarkdown(level: string, markdownString: string): void
method logWarning
Logs a warning message
logWarning(message: string): void
method onBeforeResourceStarted builder
Subscribes to the BeforeResourceStarted event
onBeforeResourceStarted(callback: (arg: BeforeResourceStartedEvent) => Promise<void>): IResource
method onConnectionStringAvailable builder
Subscribes to the ConnectionStringAvailable event
onConnectionStringAvailable(callback: (arg: ConnectionStringAvailableEvent) => Promise<void>): IResourceWithConnectionString
method onInitializeResource builder
Subscribes to the InitializeResource event
onInitializeResource(callback: (arg: InitializeResourceEvent) => Promise<void>): IResource
method onResourceEndpointsAllocated builder
Subscribes to the ResourceEndpointsAllocated event
onResourceEndpointsAllocated(callback: (arg: ResourceEndpointsAllocatedEvent) => Promise<void>): IResourceWithEndpoints
method onResourceReady builder
Subscribes to the ResourceReady event
onResourceReady(callback: (arg: ResourceReadyEvent) => Promise<void>): IResource
method onResourceStopped builder
Subscribes to the ResourceStopped event
onResourceStopped(callback: (arg: ResourceStoppedEvent) => Promise<void>): IResource
method publishAsConnectionString builder
Publishes the resource as a connection string
publishAsConnectionString(): ContainerResource
method publishAsContainer builder
Configures the resource to be published as a container
publishAsContainer(): ContainerResource
method publishAsDockerFile builder
Publishes the executable as a Docker container
publishAsDockerFile(): ExecutableResource
method publishAsDockerFile builder
Publishes a project as a Docker file with optional container configuration
publishAsDockerFile(configure?: (obj: ContainerResource) => Promise<void>): ProjectResource
method publishAsDockerFileWithConfigure builder
Publishes an executable as a Docker file with optional container configuration
publishAsDockerFileWithConfigure(configure: (obj: ContainerResource) => Promise<void>): ExecutableResource
method publishResourceUpdate
Publishes an update for a resource's state
publishResourceUpdate(resource: IResource, state?: string, stateStyle?: string): void
method publishWithContainerFiles builder
Configures the resource to copy container files from the specified source during publishing
publishWithContainerFiles(source: IResourceWithContainerFiles, destinationPath: string): IContainerFilesDestinationResource
method saveStateJson
Saves state to user secrets from a JSON string
saveStateJson(json: string, cancellationToken?: cancellationToken): void
method subscribeAfterResourcesCreated
Subscribes to the AfterResourcesCreated event
subscribeAfterResourcesCreated(callback: (arg: AfterResourcesCreatedEvent) => Promise<void>): DistributedApplicationEventSubscription
method subscribeBeforeStart
Subscribes to the BeforeStart event
subscribeBeforeStart(callback: (arg: BeforeStartEvent) => Promise<void>): DistributedApplicationEventSubscription
method tryGetResourceState
Tries to get the current state of a resource
tryGetResourceState(resourceName: string): ResourceEventDto
method updateTask
Updates the reporting task with plain-text status text
updateTask(statusText: string, cancellationToken?: cancellationToken): void
method updateTaskMarkdown
Updates the reporting task with Markdown-formatted status text
updateTaskMarkdown(markdownString: string, cancellationToken?: cancellationToken): void
method waitFor builder
Waits for another resource to be ready
waitFor(dependency: IResource): IResourceWithWaitSupport
method waitForCompletion builder
Waits for resource completion
waitForCompletion(dependency: IResource, exitCode?: number): IResourceWithWaitSupport
method waitForDependencies
Waits for all dependencies of a resource to be ready
waitForDependencies(resource: IResource): void
method waitForResourceHealthy
Waits for a resource to become healthy
waitForResourceHealthy(resourceName: string): ResourceEventDto
method waitForResourceState
Waits for a resource to reach a specified state
waitForResourceState(resourceName: string, targetState?: string): void
method waitForResourceStates
Waits for a resource to reach one of the specified states
waitForResourceStates(resourceName: string, targetStates: string[]): string
method waitForStart builder
Waits for another resource to start
waitForStart(dependency: IResource): IResourceWithWaitSupport
method waitForStartWithBehavior builder
Waits for another resource to start with specific behavior
waitForStartWithBehavior(dependency: IResource, waitBehavior: WaitBehavior): IResourceWithWaitSupport
method waitForWithBehavior builder
Waits for another resource with specific behavior
waitForWithBehavior(dependency: IResource, waitBehavior: WaitBehavior): IResourceWithWaitSupport
method withArgs builder
Adds arguments
withArgs(args: string[]): IResourceWithArgs
method withArgsCallback builder
Sets command-line arguments via callback
withArgsCallback(callback: (obj: CommandLineArgsCallbackContext) => Promise<void>): IResourceWithArgs
method withArgsCallbackAsync builder
Sets command-line arguments via async callback
withArgsCallbackAsync(callback: (arg: CommandLineArgsCallbackContext) => Promise<void>): IResourceWithArgs
method withBindMount builder
Adds a bind mount
withBindMount(source: string, target: string, isReadOnly?: boolean): ContainerResource
method withBuildArg builder
Adds a build argument from a parameter resource
withBuildArg(name: string, value: ParameterResource): ContainerResource
method withBuildSecret builder
Adds a build secret from a parameter resource
withBuildSecret(name: string, value: ParameterResource): ContainerResource
method withCertificateTrustScope builder
Sets the certificate trust scope
withCertificateTrustScope(scope: CertificateTrustScope): IResourceWithEnvironment
method withChildRelationship builder
Sets a child relationship
withChildRelationship(child: IResource): IResource
method withCommand builder
Adds a resource command
withCommand(name: string, displayName: string, executeCommand: (arg: ExecuteCommandContext) => Promise<ExecuteCommandResult>, commandOptions?: CommandOptions): IResource
method withConnectionProperty builder
Adds a connection property with a reference expression
withConnectionProperty(name: string, value: ReferenceExpression): IResourceWithConnectionString
method withConnectionPropertyValue builder
Adds a connection property with a string value
withConnectionPropertyValue(name: string, value: string): IResourceWithConnectionString
method withContainerFilesSource builder
Sets the source directory for container files
withContainerFilesSource(sourcePath: string): IResourceWithContainerFiles
method withContainerName builder
Sets the container name
withContainerName(name: string): ContainerResource
method withContainerNetworkAlias builder
Adds a network alias for the container
withContainerNetworkAlias(alias: string): ContainerResource
method withContainerRegistry builder
Configures a resource to use a container registry
withContainerRegistry(registry: IResource): IResource
method withContainerRuntimeArgs builder
Adds runtime arguments for the container
withContainerRuntimeArgs(args: string[]): ContainerResource
method withDescription builder
Sets a parameter description
withDescription(description: string, enableMarkdown?: boolean): ParameterResource
method withDeveloperCertificateTrust builder
Configures developer certificate trust
withDeveloperCertificateTrust(trust: boolean): IResourceWithEnvironment
method withDockerfile builder
Configures the resource to use a Dockerfile
withDockerfile(contextPath: string, dockerfilePath?: string, stage?: string): ContainerResource
method withDockerfileBaseImage builder
Sets the base image for a Dockerfile build
withDockerfileBaseImage(buildImage?: string, runtimeImage?: string): IResource
method withEndpoint builder
Adds a network endpoint
withEndpoint(port?: number, targetPort?: number, scheme?: string, name?: string, env?: string, isProxied?: boolean, isExternal?: boolean, protocol?: ProtocolType): IResourceWithEndpoints
method withEndpointProxySupport builder
Configures endpoint proxy support
withEndpointProxySupport(proxyEnabled: boolean): ContainerResource
method withEntrypoint builder
Sets the container entrypoint
withEntrypoint(entrypoint: string): ContainerResource
method withEnvironment builder
Sets an environment variable on the resource
withEnvironment(name: string, value: IResourceWithConnectionString): IResourceWithEnvironment
method withEnvironmentCallback builder
Sets environment variables via callback
withEnvironmentCallback(callback: (arg: EnvironmentCallbackContext) => Promise<void>): IResourceWithEnvironment
method withEnvironmentConnectionString builder
Sets an environment variable from a connection string resource
withEnvironmentConnectionString(envVarName: string, resource: IResourceWithConnectionString): IResourceWithEnvironment
method withEnvironmentEndpoint builder
Sets an environment variable from an endpoint reference
withEnvironmentEndpoint(name: string, endpointReference: EndpointReference): IResourceWithEnvironment
method withEnvironmentParameter builder
Sets an environment variable from a parameter resource
withEnvironmentParameter(name: string, parameter: ParameterResource): IResourceWithEnvironment
method withExecutableCommand builder
Sets the executable command
withExecutableCommand(command: string): ExecutableResource
method withExplicitStart builder
Prevents resource from starting automatically
withExplicitStart(): IResource
method withExternalHttpEndpoints builder
Makes HTTP endpoints externally accessible
withExternalHttpEndpoints(): IResourceWithEndpoints
method withExternalServiceHttpHealthCheck builder
Adds an HTTP health check to an external service
withExternalServiceHttpHealthCheck(path?: string, statusCode?: number): ExternalServiceResource
method withHealthCheck builder
Adds a health check by key
withHealthCheck(key: string): IResource
method withHttpEndpoint builder
Adds an HTTP endpoint
withHttpEndpoint(port?: number, targetPort?: number, name?: string, env?: string, isProxied?: boolean): IResourceWithEndpoints
method withHttpHealthCheck builder
Adds an HTTP health check
withHttpHealthCheck(path?: string, statusCode?: number, endpointName?: string): IResourceWithEndpoints
method withHttpProbe builder
Adds an HTTP health probe to the resource
withHttpProbe(probeType: ProbeType, path?: string, initialDelaySeconds?: number, periodSeconds?: number, timeoutSeconds?: number, failureThreshold?: number, successThreshold?: number, endpointName?: string): IResourceWithEndpoints
method withHttpsDeveloperCertificate builder
Configures HTTPS with a developer certificate
withHttpsDeveloperCertificate(password?: ParameterResource): IResourceWithEnvironment
method withHttpsEndpoint builder
Adds an HTTPS endpoint
withHttpsEndpoint(port?: number, targetPort?: number, name?: string, env?: string, isProxied?: boolean): IResourceWithEndpoints
method withIconName builder
Sets the icon for the resource
withIconName(iconName: string, iconVariant?: IconVariant): IResource
method withImage builder
Sets the container image
withImage(image: string, tag?: string): ContainerResource
method withImagePullPolicy builder
Sets the container image pull policy
withImagePullPolicy(pullPolicy: ImagePullPolicy): ContainerResource
method withImageRegistry builder
Sets the container image registry
withImageRegistry(registry: string): ContainerResource
method withImageSHA256 builder
Sets the image SHA256 digest
withImageSHA256(sha256: string): ContainerResource
method withImageTag builder
Sets the container image tag
withImageTag(tag: string): ContainerResource
method withLifetime builder
Sets the lifetime behavior of the container resource
withLifetime(lifetime: ContainerLifetime): ContainerResource
method withMcpServer builder
Configures an MCP server endpoint on the resource
withMcpServer(path?: string, endpointName?: string): IResourceWithEndpoints
method withOtlpExporter builder
Configures OTLP telemetry export
withOtlpExporter(): IResourceWithEnvironment
method withOtlpExporterProtocol builder
Configures OTLP telemetry export with specific protocol
withOtlpExporterProtocol(protocol: OtlpProtocol): IResourceWithEnvironment
method withoutHttpsCertificate builder
Removes HTTPS certificate configuration
withoutHttpsCertificate(): IResourceWithEnvironment
method withParentRelationship builder
Sets the parent relationship
withParentRelationship(parent: IResource): IResource
method withPipelineConfiguration builder
Configures pipeline step dependencies via a callback
withPipelineConfiguration(callback: (obj: PipelineConfigurationContext) => Promise<void>): IResource
method withPipelineConfigurationAsync builder
Configures pipeline step dependencies via an async callback
withPipelineConfigurationAsync(callback: (arg: PipelineConfigurationContext) => Promise<void>): IResource
method withPipelineStepFactory builder
Adds a pipeline step to the resource
withPipelineStepFactory(stepName: string, callback: (arg: PipelineStepContext) => Promise<void>, dependsOn?: string[], requiredBy?: string[], tags?: string[], description?: string): IResource
method withReference builder
Adds a reference to another resource
withReference(source: IResource, connectionName?: string, optional?: boolean, name?: string): IResourceWithEnvironment
method withReferenceEndpoint builder
Adds a reference to an endpoint
withReferenceEndpoint(endpointReference: EndpointReference): IResourceWithEnvironment
method withReferenceExternalService builder
Adds a reference to an external service
withReferenceExternalService(externalService: ExternalServiceResource): IResourceWithEnvironment
method withReferenceUri builder
Adds a reference to a URI
withReferenceUri(name: string, uri: uri): IResourceWithEnvironment
method withRemoteImageName builder
Sets the remote image name for publishing
withRemoteImageName(remoteImageName: string): IComputeResource
method withRemoteImageTag builder
Sets the remote image tag for publishing
withRemoteImageTag(remoteImageTag: string): IComputeResource
method withReplicas builder
Sets the number of replicas
withReplicas(replicas: number): ProjectResource
method withRequiredCommand builder
Adds a required command dependency
withRequiredCommand(command: string, helpLink?: string): IResource
method withToolIgnoreExistingFeeds builder
Ignores existing NuGet feeds
withToolIgnoreExistingFeeds(): DotnetToolResource
method withToolIgnoreFailedSources builder
Ignores failed NuGet sources
withToolIgnoreFailedSources(): DotnetToolResource
method withToolPackage builder
Sets the tool package ID
withToolPackage(packageId: string): DotnetToolResource
method withToolPrerelease builder
Allows prerelease tool versions
withToolPrerelease(): DotnetToolResource
method withToolSource builder
Adds a NuGet source for the tool
withToolSource(source: string): DotnetToolResource
method withToolVersion builder
Sets the tool version
withToolVersion(version: string): DotnetToolResource
method withUrl builder
Adds or modifies displayed URLs
withUrl(url: string, displayText?: string): IResource
method withUrlExpression builder
Adds a URL using a reference expression
withUrlExpression(url: ReferenceExpression, displayText?: string): IResource
method withUrlForEndpoint builder
Customizes the URL for a specific endpoint via callback
withUrlForEndpoint(endpointName: string, callback: (obj: ResourceUrlAnnotation) => Promise<void>): IResource
method withUrlForEndpointFactory builder
Adds a URL for a specific endpoint via factory callback
withUrlForEndpointFactory(endpointName: string, callback: (arg: EndpointReference) => Promise<ResourceUrlAnnotation>): IResourceWithEndpoints
method withUrlsCallback builder
Customizes displayed URLs via callback
withUrlsCallback(callback: (obj: ResourceUrlsCallbackContext) => Promise<void>): IResource
method withUrlsCallbackAsync builder
Customizes displayed URLs via async callback
withUrlsCallbackAsync(callback: (arg: ResourceUrlsCallbackContext) => Promise<void>): IResource
method withVolume builder
Adds a volume
withVolume(target: string, name?: string, isReadOnly?: boolean): ContainerResource
method withWorkingDirectory builder
Sets the executable working directory
withWorkingDirectory(workingDirectory: string): ExecutableResource

Enums