Skip to content
DocsTry Aspire
DocsTry

ProjectResource.withEndpointsInEnvironment

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