Skip to content
Docs Try Aspire
Docs Try

withRelationship

Method
📦 Aspire.Hosting v13.3.0
interface ContainerResource {
// ... omitted for brevity
withRelationship(
resourceBuilder: IResource,
type: string): IResource;
}

Signature

method withRelationship builder
Adds a relationship to another resource
withRelationship(
resourceBuilder: IResource,
type: string): IResource
resourceBuilder IResource
type string
IResource

Applies to

This method applies to the following types: