Skip to content
Docs Try Aspire

IYarpConfigurationBuilder

Interface net8.0
📦 Aspire.Hosting.Yarp v13.2.0
Interface to build a configuration file for YARP
namespace Aspire.Hosting;
public interface IYarpConfigurationBuilder
{
// ...
}
AddCluster(EndpointReference)abstractats ignored
Add a new cluster to YARP.
AddCluster(IResourceBuilder<IResourceWithServiceDiscovery>)abstractats ignored
Add a new cluster to YARP based on a resource that supports service discovery.
AddCluster(IResourceBuilder<ExternalServiceResource>)abstractats ignored
Add a new cluster to YARP based on an external service resource.
AddCluster(string, object[])abstractats ignored
Add a new cluster to YARP based on a collection of urls.
AddCluster(string, object)virtualats ignored
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