Skip to content
DocsTry Aspire
DocsTry

withEndpointsInEnvironment

Method
📦 Aspire.Hosting v13.5.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

Applies to

This method applies to the following types: