Skip to content
Docs Try Aspire

IResourceWithEnvironment.withEnvironmentEndpoint

Method
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface IResourceWithEnvironment {
// ... omitted for brevity
withEnvironmentEndpoint(
name: string,
endpointReference: EndpointReference): IResourceWithEnvironment;
}

Signature

method withEnvironmentEndpoint builder
Sets an environment variable from an endpoint reference
withEnvironmentEndpoint(
name: string,
endpointReference: EndpointReference): IResourceWithEnvironment
name string
endpointReference EndpointReference
IResourceWithEnvironment

Defined on

This method is defined on the following type: