DotnetProjectResource
Handle
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(): DotnetProjectResourceReturns
DotnetProjectResource Adds an environment variable to the build process for a .NET project.
withBuildEnvironment( name: string, value: string): DotnetProjectResourceParameters
namestringThe name of the environment variable.valuestringThe value of the environment variable.Returns
DotnetProjectResource Configures endpoint environment-variable injection for a .NET project in polyglot AppHosts.
withEndpointsInEnvironment(endpointNames: string[]): DotnetProjectResourceParameters
endpointNames string[]Returns
DotnetProjectResource Configures the number of replicas of the .NET project.
withReplicas(replicas: number): DotnetProjectResourceParameters
replicasnumberThe number of replicas.Returns
DotnetProjectResource