Interface IProxyConfigFilter
A configuration filter that will run each time the proxy configuration is loaded.
Namespace: Yarp.ReverseProxy.Configuration
Assembly: Yarp.ReverseProxy.dll
Syntax
public interface IProxyConfigFilter
Methods
| Improve this Doc View SourceConfigureClusterAsync(ClusterConfig, CancellationToken)
Allows modification of a cluster configuration.
Declaration
ValueTask<ClusterConfig> ConfigureClusterAsync(ClusterConfig cluster, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
ClusterConfig | cluster | The ClusterConfig instance to configure. |
CancellationToken | cancel |
Returns
Type | Description |
---|---|
ValueTask<ClusterConfig> |
ConfigureRouteAsync(RouteConfig, ClusterConfig, CancellationToken)
Allows modification of a route configuration.
Declaration
ValueTask<RouteConfig> ConfigureRouteAsync(RouteConfig route, ClusterConfig cluster, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
RouteConfig | route | The RouteConfig instance to configure. |
ClusterConfig | cluster | The ClusterConfig instance related to RouteConfig. |
CancellationToken | cancel |
Returns
Type | Description |
---|---|
ValueTask<RouteConfig> |