Skip to content
Docs Try Aspire

withServiceReferenceNamed

Function
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface ContainerResource {
// ... omitted for brevity
withServiceReferenceNamed(
source: IResourceWithServiceDiscovery,
name: string): IResourceWithEnvironment;
}

Signature

method withServiceReferenceNamed builder
Adds a named service discovery reference
withServiceReferenceNamed(
source: IResourceWithServiceDiscovery,
name: string): IResourceWithEnvironment
source IResourceWithServiceDiscovery
name string
IResourceWithEnvironment

Applies to

This function is an extension method on the following types: