ProjectResource.withEndpointsInEnvironment

Method
📦 Aspire.Hosting v17.0.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[]The endpoint names to include in environment variables.
ProjectResource

Defined on

This method is defined on the following type: