Aspire.Hosting.Dotnet
Official
📦 Aspire.Hosting.Dotnetv17.0.0Import path
apphost/modules/aspire5Functions
2Types
2 types, 5 functions and 0 members
Handles
DTOs
Functions
DistributedApplicationBuilder
DotnetProjectResource
method
DisableForwardedHeadersbuilderDisables automatic forwarded-header configuration when publishing the .NET project.
DisableForwardedHeaders() DotnetProjectResourcemethod
WithBuildEnvironmentbuilderAdds an environment variable to the build process for a .NET project.
WithBuildEnvironment(name string, value string) DotnetProjectResourcemethod
WithEndpointsInEnvironmentbuilderConfigures endpoint environment-variable injection for a .NET project in polyglot AppHosts.
WithEndpointsInEnvironment(endpointNames []string) DotnetProjectResourcemethod
WithReplicasbuilderConfigures the number of replicas of the .NET project.
WithReplicas(replicas float64) DotnetProjectResource