Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddClusterWithDestinations

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (YarpConfigurationBuilder) AddClusterWithDestinations(
clusterName string,
destinations []any,
) YarpCluster

Signature

methodAddClusterWithDestinations
Adds a cluster from multiple destinations.
AddClusterWithDestinations(
clusterName string,
destinations []any,
) YarpCluster
clusterNamestringThe name of the cluster.
destinations[]anyThe destinations used by this cluster.
YarpCluster

The created cluster.

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

Applies to

This method applies to the following types: