Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddClusterWithDestination

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (YarpConfigurationBuilder) AddClusterWithDestination(
clusterName string,
destination any,
) YarpCluster

Signature

methodAddClusterWithDestination
Adds a cluster from a single destination.
AddClusterWithDestination(
clusterName string,
destination any,
) YarpCluster
clusterNamestringThe name of the cluster.
destinationanyThe destination 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: