Skip to content
Docs Try Aspire

IResourceWithEnvironment.withServiceReference

Method
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface IResourceWithEnvironment {
// ... omitted for brevity
withServiceReference(source: IResourceWithServiceDiscovery): IResourceWithEnvironment;
}

Signature

method withServiceReference builder
Adds a service discovery reference to another resource
withServiceReference(source: IResourceWithServiceDiscovery): IResourceWithEnvironment
source IResourceWithServiceDiscovery
IResourceWithEnvironment

Defined on

This method is defined on the following type: