Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithReplicas

Method
📦 Aspire.Hosting.Dotnet v17.0.0
func (DotnetProjectResource) WithReplicas(replicas float64) DotnetProjectResource

Signature

methodWithReplicasbuilder
Configures the number of replicas of the .NET project.
WithReplicas(replicas float64) DotnetProjectResource
replicasfloat64The number of replicas.
DotnetProjectResource

The same builder for chaining additional configuration.

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

Applies to

This method applies to the following types: