Skip to content
Docs Try Aspire

addCatchAllRouteFromResource

Function
📦 Aspire.Hosting.Yarp v13.2.0
interface IYarpConfigurationBuilder {
// ... omitted for brevity
addCatchAllRouteFromResource(resource: IResourceWithServiceDiscovery): YarpRoute;
}

Signature

method addCatchAllRouteFromResource
Adds a YARP catch-all route for a resource that supports service discovery.
addCatchAllRouteFromResource(resource: IResourceWithServiceDiscovery): YarpRoute
resource IResourceWithServiceDiscovery
YarpRoute

Applies to

This function is an extension method on the following types: