DotnetProjectResource

Handle
📦 Aspire.Hosting.Dotnet v17.0.0
interface DotnetProjectResource
extends IComputeResource,
IContainerFilesDestinationResource,
IDotnetProgramResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IResourceWithServiceDiscovery {
disableForwardedHeaders(): DotnetProjectResource;
withBuildEnvironment(
name: string,
value: string): DotnetProjectResource;
withEndpointsInEnvironment(endpointNames: string[]): DotnetProjectResource;
withReplicas(replicas: number): DotnetProjectResource;
}

Methods

Disables automatic forwarded-header configuration when publishing the .NET project.
disableForwardedHeaders(): DotnetProjectResource
DotnetProjectResource
Adds an environment variable to the build process for a .NET project.
withBuildEnvironment(
name: string,
value: string): DotnetProjectResource
namestringThe name of the environment variable.
valuestringThe value of the environment variable.
DotnetProjectResource
Configures endpoint environment-variable injection for a .NET project in polyglot AppHosts.
withEndpointsInEnvironment(endpointNames: string[]): DotnetProjectResource
endpointNamesstring[]
DotnetProjectResource
methodwithReplicasbuilder
Configures the number of replicas of the .NET project.
withReplicas(replicas: number): DotnetProjectResource
replicasnumberThe number of replicas.
DotnetProjectResource