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

Applies to

This method applies to the following types: