Interface IConfigValidator
- Namespace
- Yarp.ReverseProxy.Configuration
- Assembly
- Yarp.ReverseProxy.dll
Provides methods to validate routes and clusters.
public interface IConfigValidator
Methods
ValidateClusterAsync(ClusterConfig)
Validates a cluster and returns all errors.
ValueTask<IList<Exception>> ValidateClusterAsync(ClusterConfig cluster)
Parameters
cluster
ClusterConfig
Returns
ValidateRouteAsync(RouteConfig)
Validates a route and returns all errors
ValueTask<IList<Exception>> ValidateRouteAsync(RouteConfig route)
Parameters
route
RouteConfig