IYarpConfigurationBuilder.AddRoute(String, YarpCluster) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Add a new route to YARP that will target the cluster in parameter.
public Aspire.Hosting.Yarp.YarpRoute AddRoute(string path, Aspire.Hosting.Yarp.YarpCluster cluster);
abstract member AddRoute : string * Aspire.Hosting.Yarp.YarpCluster -> Aspire.Hosting.Yarp.YarpRoute
Public Function AddRoute (path As String, cluster As YarpCluster) As YarpRoute
Parameters
- path
- String
The path to match for this route.
- cluster
- YarpCluster
The target cluster for this route.