Watch Aspire live streamsDocsTry Aspire

ProjectResource.withEndpointsInEnvironment

Method
📦 Aspire.Hosting v13.6.0
interface ProjectResource {
// ... omitted for brevity
withEndpointsInEnvironment(endpointNames: string[]): ProjectResource;
}

Signature

methodwithEndpointsInEnvironmentbuilder
Includes only the specified project endpoint names in environment-variable injection.
withEndpointsInEnvironment(endpointNames: string[]): ProjectResource
endpointNamesstring[]
ProjectResource

Defined on

This method is defined on the following type: