YarpConfigurationBuilderExtensions Methods
ClassMethods7 members
Collection of extensions methods for
IYarpConfigurationBuilderAddRoute(IYarpConfigurationBuilder, YarpCluster)Section titled AddRoute(IYarpConfigurationBuilder, YarpCluster)extensionYarpRoute Add a new catch all route to YARP that will target the cluster in parameter.
public static class YarpConfigurationBuilderExtensions{ public static YarpRoute AddRoute( this IYarpConfigurationBuilder builder, YarpCluster cluster) { // ... }}Parameters
builderIYarpConfigurationBuilderThe builder instance.clusterYarpClusterThe target cluster for this route.Returns
YarpRouteThe created route for further configuration.AddRoute(IYarpConfigurationBuilder, EndpointReference)Section titled AddRoute(IYarpConfigurationBuilder, EndpointReference)extensionYarpRoute Add a new catch all route to YARP that will target the cluster in parameter.
public static class YarpConfigurationBuilderExtensions{ public static YarpRoute AddRoute( this IYarpConfigurationBuilder builder, EndpointReference endpoint) { // ... }}Parameters
builderIYarpConfigurationBuilderThe builder instance.endpointEndpointReferenceThe target endpoint for this route.Returns
YarpRouteThe created route for further configuration.AddRoute(IYarpConfigurationBuilder, IResourceBuilder<IResourceWithServiceDiscovery>)Section titled AddRoute(IYarpConfigurationBuilder, IResourceBuilder<IResourceWithServiceDiscovery>)extensionYarpRoute Add a new catch all route to YARP that will target the cluster in parameter.
public static class YarpConfigurationBuilderExtensions{ public static YarpRoute AddRoute( this IYarpConfigurationBuilder builder, IResourceBuilder<IResourceWithServiceDiscovery> resource) { // ... }}Parameters
builderIYarpConfigurationBuilderThe builder instance.resourceIResourceBuilder<IResourceWithServiceDiscovery>The target resource for this route.Returns
YarpRouteThe created route for further configuration.AddRoute(IYarpConfigurationBuilder, string, EndpointReference)Section titled AddRoute(IYarpConfigurationBuilder, string, EndpointReference)extensionYarpRoute Add a new route to YARP that will target the cluster in parameter.
public static class YarpConfigurationBuilderExtensions{ public static YarpRoute AddRoute( this IYarpConfigurationBuilder builder, string path, EndpointReference endpoint) { // ... }}Parameters
builderIYarpConfigurationBuilderThe builder instance.pathstringThe path to match for this route.endpointEndpointReferenceThe target endpoint for this route.Returns
YarpRouteThe created route for further configuration.AddRoute(IYarpConfigurationBuilder, string, IResourceBuilder<IResourceWithServiceDiscovery>)Section titled AddRoute(IYarpConfigurationBuilder, string, IResourceBuilder<IResourceWithServiceDiscovery>)extensionYarpRoute Add a new route to YARP that will target the cluster in parameter.
public static class YarpConfigurationBuilderExtensions{ public static YarpRoute AddRoute( this IYarpConfigurationBuilder builder, string path, IResourceBuilder<IResourceWithServiceDiscovery> resource) { // ... }}Parameters
builderIYarpConfigurationBuilderThe builder instance.pathstringThe path to match for this route.resourceIResourceBuilder<IResourceWithServiceDiscovery>The target endpoint for this route.Returns
YarpRouteThe created route for further configuration.AddRoute(IYarpConfigurationBuilder, string, IResourceBuilder<ExternalServiceResource>)Section titled AddRoute(IYarpConfigurationBuilder, string, IResourceBuilder<ExternalServiceResource>)extensionYarpRoute Add a new route to YARP that will target the external service in parameter.
public static class YarpConfigurationBuilderExtensions{ public static YarpRoute AddRoute( this IYarpConfigurationBuilder builder, string path, IResourceBuilder<ExternalServiceResource> externalService) { // ... }}Parameters
builderIYarpConfigurationBuilderThe builder instance.pathstringThe path to match for this route.externalServiceIResourceBuilder<ExternalServiceResource>The target external service for this route.Returns
YarpRouteThe created route for further configuration.AddRoute(IYarpConfigurationBuilder, IResourceBuilder<ExternalServiceResource>)Section titled AddRoute(IYarpConfigurationBuilder, IResourceBuilder<ExternalServiceResource>)extensionYarpRoute Add a new catch all route to YARP that will target the cluster in parameter.
public static class YarpConfigurationBuilderExtensions{ public static YarpRoute AddRoute( this IYarpConfigurationBuilder builder, IResourceBuilder<ExternalServiceResource> externalService) { // ... }}Parameters
builderIYarpConfigurationBuilderThe builder instance.externalServiceIResourceBuilder<ExternalServiceResource>The target external service for this route.Returns
YarpRouteThe created route for further configuration.