Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

DotnetProjectResource.WithEndpointsInEnvironment

Method
📦 Aspire.Hosting.Dotnet v17.0.0
type DotnetProjectResource interface {
// ... 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
endpointNames[]string
DotnetProjectResource

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

Defined on

This method is defined on the following type: