Skip to content
DocsTry Aspire
DocsTry

withLoadBalancingPolicy

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

Signature

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

Applies to

This method applies to the following types: