Watch Aspire live streamsDocsTry Aspire

withEndpointsInEnvironment

Method
📦 Aspire.Hosting.Dotnet v13.6.0-preview.1.26478.8
interface DotnetProjectResource {
// ... omitted for brevity
withEndpointsInEnvironment(endpointNames: string[]): DotnetProjectResource;
}

Signature

methodwithEndpointsInEnvironmentbuilder
Configures endpoint environment-variable injection for a .NET project in polyglot AppHosts.
withEndpointsInEnvironment(endpointNames: string[]): DotnetProjectResource
endpointNamesstring[]
DotnetProjectResource

Applies to

This method applies to the following types: