Skip to content
Docs Try Aspire
Docs Try

YarpCluster.withLoadBalancingPolicy

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

Signature

method withLoadBalancingPolicy
Set the LoadBalancingPolicy for the cluster.
withLoadBalancingPolicy(policy: string): YarpCluster
policy string
YarpCluster

Defined on

This method is defined on the following type: