IResource.withRelationship

Method
📦 Aspire.Hosting v17.0.0
interface IResource {
// ... 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
resourceBuilderIResourceThe resource builder that the relationship is to.
typestringThe relationship type.
IResource

Defined on

This method is defined on the following type: