Skip to content
Docs Try Aspire
Docs Try

withLoadBalancingPolicy

Method
📦 Aspire.Hosting.Yarp v13.3.0
interface YarpCluster {
// ... omitted for brevity
withLoadBalancingPolicy(policy: string): YarpCluster;
}

Signature

method withLoadBalancingPolicy
Sets the load balancing policy for the cluster.
withLoadBalancingPolicy(policy: string): YarpCluster
policy string
YarpCluster

Applies to

This method applies to the following types: