Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithEndpointsInEnvironment

Method
📦 Aspire.Hosting.Dotnet v17.0.0
func (DotnetProjectResource) WithEndpointsInEnvironment(endpointNames []string) DotnetProjectResource

Signature

methodWithEndpointsInEnvironmentbuilder
Configures endpoint environment-variable injection for a .NET project in polyglot AppHosts.
WithEndpointsInEnvironment(endpointNames []string) DotnetProjectResource
endpointNames[]string
DotnetProjectResource

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: