Share via


IYarpConfigurationBuilder.AddCluster Method

Definition

Overloads

AddCluster(EndpointReference)

Add a new cluster to YARP.

AddCluster(IResourceBuilder<ExternalServiceResource>)

Add a new cluster to YARP based on an external service resource.

AddCluster(IResourceBuilder<IResourceWithServiceDiscovery>)

Add a new cluster to YARP based on a resource that supports service discovery.

AddCluster(String, Object)

Add a new cluster to YARP based on a collection of urls.

AddCluster(String, Object[])

Add a new cluster to YARP based on a collection of urls.

AddCluster(EndpointReference)

Source:
IYarpConfigurationBuilder.cs
Source:
IYarpConfigurationBuilder.cs

Add a new cluster to YARP.

public Aspire.Hosting.Yarp.YarpCluster AddCluster(Aspire.Hosting.ApplicationModel.EndpointReference endpoint);
abstract member AddCluster : Aspire.Hosting.ApplicationModel.EndpointReference -> Aspire.Hosting.Yarp.YarpCluster
Public Function AddCluster (endpoint As EndpointReference) As YarpCluster

Parameters

endpoint
EndpointReference

The endpoint target for this cluster.

Returns

Applies to

AddCluster(IResourceBuilder<ExternalServiceResource>)

Source:
IYarpConfigurationBuilder.cs
Source:
IYarpConfigurationBuilder.cs

Add a new cluster to YARP based on an external service resource.

public Aspire.Hosting.Yarp.YarpCluster AddCluster(Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ExternalServiceResource> externalService);
abstract member AddCluster : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ExternalServiceResource> -> Aspire.Hosting.Yarp.YarpCluster
Public Function AddCluster (externalService As IResourceBuilder(Of ExternalServiceResource)) As YarpCluster

Parameters

externalService
IResourceBuilder<ExternalServiceResource>

The external service used by this cluster.

Returns

Applies to

AddCluster(IResourceBuilder<IResourceWithServiceDiscovery>)

Source:
IYarpConfigurationBuilder.cs
Source:
IYarpConfigurationBuilder.cs

Add a new cluster to YARP based on a resource that supports service discovery.

public Aspire.Hosting.Yarp.YarpCluster AddCluster(Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.IResourceWithServiceDiscovery> resource);
abstract member AddCluster : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.IResourceWithServiceDiscovery> -> Aspire.Hosting.Yarp.YarpCluster
Public Function AddCluster (resource As IResourceBuilder(Of IResourceWithServiceDiscovery)) As YarpCluster

Parameters

resource
IResourceBuilder<IResourceWithServiceDiscovery>

The resource target for this cluster.

Returns

Applies to

AddCluster(String, Object)

Source:
IYarpConfigurationBuilder.cs

Add a new cluster to YARP based on a collection of urls.

public virtual Aspire.Hosting.Yarp.YarpCluster AddCluster(string clusterName, object destination);
abstract member AddCluster : string * obj -> Aspire.Hosting.Yarp.YarpCluster
override this.AddCluster : string * obj -> Aspire.Hosting.Yarp.YarpCluster
Public Overridable Function AddCluster (clusterName As String, destination As Object) As YarpCluster

Parameters

clusterName
String

The name of the cluster.

destination
Object

The destinations used by this cluster.

Returns

Applies to

AddCluster(String, Object[])

Source:
IYarpConfigurationBuilder.cs

Add a new cluster to YARP based on a collection of urls.

public Aspire.Hosting.Yarp.YarpCluster AddCluster(string clusterName, object[] destinations);
abstract member AddCluster : string * obj[] -> Aspire.Hosting.Yarp.YarpCluster
Public Function AddCluster (clusterName As String, destinations As Object()) As YarpCluster

Parameters

clusterName
String

The name of the cluster.

destinations
Object[]

The destinations used by this cluster.

Returns

Applies to