Skip to content
DocsTry Aspire
DocsTry

withRelationship

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

Signature

methodwithRelationshipbuilder
Adds a relationship to another resource using its builder.
withRelationship(
resourceBuilder: IResource,
type: string): IResource
resourceBuilderIResource
typestring
IResource

Applies to

This method applies to the following types: