Skip to content
Docs Try Aspire

IYarpConfigurationBuilder

Interface net10.0
📦 Aspire.Hosting.Yarp v13.1.2
Interface to build a configuration file for YARP
namespace Aspire.Hosting;
public interface IYarpConfigurationBuilder
{
// ...
}
AddCluster(EndpointReference)abstract
Add a new cluster to YARP.
AddCluster(IResourceBuilder<IResourceWithServiceDiscovery>)abstract
Add a new cluster to YARP based on a resource that supports service discovery.
AddCluster(IResourceBuilder<ExternalServiceResource>)abstract
Add a new cluster to YARP based on an external service resource.
AddCluster(string, object[])abstract
Add a new cluster to YARP based on a collection of urls.
AddCluster(string, object)virtual
Add a new cluster to YARP based on a collection of urls.
AddRoute(string, YarpCluster)abstract
Add a new route to YARP that will target the cluster in parameter.
View all methods