Skip to content
Docs Try Aspire

YarpConfigurationBuilderExtensions Methods

Class Methods 7 members
Collection of extensions methods for IYarpConfigurationBuilder
AddRoute(IYarpConfigurationBuilder, YarpCluster) Section titled AddRoute(IYarpConfigurationBuilder, YarpCluster) extension YarpRoute
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)
{
// ...
}
}
builder IYarpConfigurationBuilder The builder instance.
cluster YarpCluster The target cluster for this route.
AddRoute(IYarpConfigurationBuilder, EndpointReference) Section titled AddRoute(IYarpConfigurationBuilder, EndpointReference) extension YarpRoute
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)
{
// ...
}
}
builder IYarpConfigurationBuilder The builder instance.
endpoint EndpointReference The target endpoint for this route.
AddRoute(IYarpConfigurationBuilder, IResourceBuilder<IResourceWithServiceDiscovery>) Section titled AddRoute(IYarpConfigurationBuilder, IResourceBuilder<IResourceWithServiceDiscovery>) extension YarpRoute
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)
{
// ...
}
}
builder IYarpConfigurationBuilder The builder instance.
resource IResourceBuilder<IResourceWithServiceDiscovery> The target resource for this route.
AddRoute(IYarpConfigurationBuilder, string, EndpointReference) Section titled AddRoute(IYarpConfigurationBuilder, string, EndpointReference) extension YarpRoute
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)
{
// ...
}
}
builder IYarpConfigurationBuilder The builder instance.
path string The path to match for this route.
endpoint EndpointReference The target endpoint for this route.
AddRoute(IYarpConfigurationBuilder, string, IResourceBuilder<IResourceWithServiceDiscovery>) Section titled AddRoute(IYarpConfigurationBuilder, string, IResourceBuilder<IResourceWithServiceDiscovery>) extension YarpRoute
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)
{
// ...
}
}
builder IYarpConfigurationBuilder The builder instance.
path string The path to match for this route.
resource IResourceBuilder<IResourceWithServiceDiscovery> The target endpoint for this route.
AddRoute(IYarpConfigurationBuilder, string, IResourceBuilder<ExternalServiceResource>) Section titled AddRoute(IYarpConfigurationBuilder, string, IResourceBuilder<ExternalServiceResource>) extension YarpRoute
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)
{
// ...
}
}
builder IYarpConfigurationBuilder The builder instance.
path string The path to match for this route.
externalService IResourceBuilder<ExternalServiceResource> The target external service for this route.
AddRoute(IYarpConfigurationBuilder, IResourceBuilder<ExternalServiceResource>) Section titled AddRoute(IYarpConfigurationBuilder, IResourceBuilder<ExternalServiceResource>) extension YarpRoute
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)
{
// ...
}
}
builder IYarpConfigurationBuilder The builder instance.
externalService IResourceBuilder<ExternalServiceResource> The target external service for this route.