Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithLoadBalancingPolicy

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (YarpCluster) WithLoadBalancingPolicy(policy string) YarpCluster

Signature

methodWithLoadBalancingPolicy
Set the LoadBalancingPolicy for the cluster.
WithLoadBalancingPolicy(policy string) YarpCluster
policystring
YarpCluster

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

Applies to

This method applies to the following types: